Discussion :: Strings - Find Output of Program (Q.No.29)
|John Doe said: (Apr 17, 2012)|
|I believe the explanation is not the best one.
printf returns the number of bytes printed not including the trailing '\0' used to end output to strings.Therefore the return will be 0 and the condition is false.
|Ask said: (Sep 24, 2015)|
|I am not agree with the @John. Output would be A.|
|Santhosh said: (Nov 4, 2016)|
|Output will be A because it will return 1.|
|Nads said: (Aug 22, 2017)|
|Answer is A because it is in double quotes not single.|
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.