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 / rakesh
B)only 2
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Explain a pre-processor and its advantages.
What is the role of this pointer?
What is the use of getchar() function?
What is #include cctype?
Give the rules for variable declaration?
What are the modifiers available in c programming language?
how is the examination pattern?
What are the advantages of the functions?
What is character set?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
What is the difference between array and pointer?
I heard that you have to include stdio.h before calling printf. Why?
Explain what are reserved words?
What language is windows 1.0 written?
How can I rethow can I return a sequence of random numbers which dont repeat at all?