what is the output of printf(a &&b); | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is the output of printf(a &&b);

int a=2,b=4; Printf("%d", a & & b) ;

25th Feb 2019, 10:03 AM
Nik
Nik - avatar
2 Answers
+ 2
..\Playground\: In function 'main': ..\Playground\:4:9: error: 'a' undeclared (first use in this function) printf (a && b) ^ ..\Playground\:4:9: note: each undeclared identifier is reported only once for each function it appears in ..\Playground\:4:14: error: 'b' undeclared (first use in this function) printf (a && b) ^ ..\Playground\:5:5: error: expected ';' before 'return' return 0; ^~~~~~
25th Feb 2019, 10:28 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
https://www.sololearn.com/learn/C/2925/?ref=app Printf (a && b) makes no sense.
25th Feb 2019, 11:34 PM
Denise Roßberg
Denise Roßberg - avatar