Welcome Guest | Sign in | Register
printf() and scanf() - Discussion Page For Q.10538 | 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+"SoftLucent"+4);
}
A. Compilation Error B. skills
C. kills D. ls

Answer and Explanation

Answer:ls

Explanation:
SoftLucent is a constant string and statement
printf(3+"SoftLucent"+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.