Q. | What is the output of the following program? main ( )
{ int x = 2, y = 5;
if (x < y) return (x = x+y); else printf ("z1");
printf("z2');
}
|
|||||||
|
Answer: | Option D | |
Explaination: | There is no compilation error but there will no output because function is returning a value and if statement is true in this case |
Discussion
Your Comments Goes here... |
Name | Discussion |
---|