Saved Bookmarks
| 1. |
What is the output of the following program?main( ){int i=4, z=12;if(i=5 || z>50)printf(“hello”);elseprintf(“hye”);}(A)hello(B) hye(C) syntax error(D) hellohye |
|
Answer» Correct option - (A)hello Explanation:- i=5 will assign value 5 to i so the if statement (i=5||z>50) is true so “printf” statement will print hello. |
|