+ 6

🎓 c++ series >>> output ques 3rd

what is the output of .. int a=0; int * ptr=&a; if(*ptr) { cout<<a; } else { cout<<"a"; }

17th Jun 2017, 4:14 PM
#Happy@777
#Happy@777 - avatar
3 Antworten
+ 10
if (0)// does not works so prints a
17th Jun 2017, 4:19 PM
khadeeja Shamna
khadeeja Shamna - avatar
+ 6
a??
17th Jun 2017, 4:18 PM
khadeeja Shamna
khadeeja Shamna - avatar
+ 6
correct ....👏👏👏
17th Jun 2017, 4:20 PM
#Happy@777
#Happy@777 - avatar