Welcome Guest | Sign in | Register
Arrays - Discussion Page For Q.10424 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Arrays > Questions and Answers

Q: What will be output when you will execute following C code?
#include
{
char arr[11]="The African Queen";
printf("%s", arr);
return 0;
}
A. T B. Compilation error
C. The African Queen D. null

Answer and Explanation

Answer:Compilation error

Explanation:
Size of any character array cannot be less than the number of characters in any string which it has assigned. Size of an array can be equal (excluding null character) or greater than but never less than

Comment on this Question

Name:

Loading...




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