What is the output of this C code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the output of this C code?

#include <stdio.h> void main() { int a=20; if(printf("Hello! Dear\n")) { printf("%d\n",a); } }

6th Mar 2020, 2:39 AM
ALEEM BAIG
ALEEM BAIG - avatar
2 Answers
+ 2
Hello! Dear 20 That´s the output. Remember to use int instead of void and return 0.
6th Mar 2020, 4:17 AM
Fernando Pozzetti
Fernando Pozzetti - avatar
0
I think Hello! Dear
6th Mar 2020, 2:56 AM
Rakesh Kumar K
Rakesh Kumar K - avatar