Welcome Guest | Sign in | Register
printf() and scanf() - Discussion Page For Q.10553 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > printf() and scanf() > Questions and Answers

Q:  What will be the output of the following program?
main()
{
printf(3+â??Gyantonicâ??+4);
}
A. ntonic B. tonic
C. ic D. nic

Answer and Explanation

Answer:ic

Explanation:
Gyantonic is a constant string and statement printf(3+â??Gyantonicâ??+4); will skip seven(3 + 4) characters of the string before printing. 

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.