0

what is output of this code

#include <stdio.h> void f() { printf("HELLO"); } int main() { int x; x=2; printf("%d\t%d",x,f); return 0; }

23rd Feb 2020, 3:19 AM
Krishna Sai Desaboina
Krishna Sai Desaboina - avatar
2 Answers
0
You will faced with a warning because first argument in printf() declare two integer values but third argument is not an integer value. The output of the f( ) function is void and does not return any thing.
23rd Feb 2020, 4:03 AM
Alireza Abbasi
Alireza Abbasi - avatar
0
You can check the code output in Code Playground 👍
23rd Feb 2020, 4:04 AM
Ipang