Find the output of the code given below: main() { int k=3; if(k=4) printf("hello"); else printf("hi"); }
Answers
Answered by
0
it is a wrong code, u should write k==3, =is an assignment operator whereas ==is the comparison operator, so it asks 'is it equal to' whereas = says assign this value to the memory space named k
Similar questions