what is the output?
int i1[]={"\12345s\n"};
printf("i1=%d\n",sizeof(i1));
The output is a compiler error. It doesn't make sense to store a string in an array of ints. What are you trying to accomplish?
iam trying to solve a question..
the question is find the output of the printf statement!!!
if I correct the code of yours
1 2
|
int i1[]={12345};
printf("i1=%d\n",sizeof(i1));
| |
the output if i1=4
since you can't do
{"\12345s\n"}
in a integer array
Last edited on
Silly question: did you ever try to compile it to find the answer? Yes, l know its stupid and compleaty ridiculous, but did it ever occur to you?