Q. | What is the output of the following program? main()
{
int x=20;
int y=10;
swap(x,y);
printf("%d %d",y,x+2);
}
swap(int x,int y)
{
int temp;
temp =x;
x=y;
y=temp;
}
|
|||||||
|
Answer: | Option D | |
Explaination: |
x= 20 ,x+2 = 22 so y= 10,x=22
|
Discussion
Your Comments Goes here... |
Name | Discussion |
---|