12. Look at the Code:
main()
{
int a[]={1,2,3},i;
for(i=0;i<3;i++)
{
printf("%d",*a);
a++;
}
}
Which Statement is/are True w.r.t the above code?
I.Executes Successfully & Prints the contents of the array
II.Gives the Error:Lvalue Required
III.The address of the array should not be changed
IV.None of the Above.
A)Only I B)Only II C)II & III D)IV
Answer Posted / basha
error: wrong type argument to increment
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What are register variables? What are the advantage of using register variables?
Why c is called free form language?
What does s c mean in text?
Explain the advantages and disadvantages of macros.
What is main function in c?
Explain 'far' and 'near' pointers in c.
What does == mean in texting?
How do you initialize pointer variables?
State the difference between x3 and x[3].
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Explain how can you tell whether a program was compiled using c versus c++?
Explain how do you convert strings to numbers in c?
Hai what is the different types of versions and their differences
Combinations of fibanocci prime series
Explain two-dimensional array.