Need help with conditional statements | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Need help with conditional statements

this is the code: #include <stdio.h> int main() { int i; if (printf("0")) i = 7; else i = 5; printf("%d", i); return 0; } answer is 07 Why???

24th Jan 2018, 4:39 AM
Ayush walia
Ayush walia - avatar
0 Answers