Sunday, November 15, 2020

#Program of Function Call by Value

 

#include<stdio.h>

#include<conio.h>

int swap(int a1,int b1);

int main()

{

 

                int a=50, b=70;

                swap(a,b);

                printf("\n a=%d,b=%d",a,b);

}

int swap(int a1, int b1)

{

                int c1;

                c1=a1;

                a1=b1;

                b1=c1;

                printf("a=%d,b=%d",a1,b1);

}

No comments:

Post a Comment

MCQ QUESTIONS

Loading…