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
What is difference between scanf and gets?
How can I change their mode to binary?
What is the total generic pointer type?
Why is c called "mother" language?
Explain what is the most efficient way to store flag values?
Explain about block scope in c?
What is the function of multilevel pointer in c?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What are the 3 types of structures?
What is c system32 taskhostw exe?
What is the difference between mpi and openmp?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
What are the advantages of the functions?
Why is not a pointer null after calling free?
What is the purpose of void in c?