Welcome Guest | Sign in | Register
printf() and scanf() - Discussion Page For Q.10540 | 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("%c","SoftLucent"[4]);
}
A. Compilation Error B. P
C. i D. l

Answer and Explanation

Answer:i

Explanation:
SoftLucent is a constant string and character at index 4 will get printed.

Comment on this Question

Name:

Loading...




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