Program to add two numbers using function (Pass by Reference)

Output:

You may also like...

7 Responses

  1. Anonymous says:

    please post more programs.. mostly with pointer..
    i want to write every program with ponters….

  2. Anonymous says:

    thanx author.really help me

  3. Write a program to find out the table of a given no. using array of structure….pls answer this question

  4. burhan uddin says:

    #include
    #include

    void table(int n,int start,int end)
    {
    int i;
    for(i=start; i< =end; i++)
    printf(“%d x %d = %d \n”,n,i,n*i);

    }

    main ()
    {
    int n,start,end;
    printf(“enter table to generate:\n “);
    scanf(“%d”,&n);
    printf(“from which number you want to start your table:\n”);
    scanf(“%d”,&start);
    printf(” At which number you want to end your table:\n “);
    scanf(“%d”,&end);
    table(n,start,end);
    getche();

    }
    #rekha

  5. C programmer says:

    We can use pointers to add two numbers. We will pass base address of both operand.

  1. July 5, 2014

    […] Program to add two numbers using function (Pass by Reference) […]

  2. August 22, 2015

    […] Few more examples: Program to add two numbers using function (Pass by value method) Program to add two numbers using function (Pass by Reference) […]

Leave a Reply

Your email address will not be published. Required fields are marked *