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.|
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.