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 / rohit
B
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the general description for loop statement and available loop types in c?
what is recursion in C
What are qualifiers and modifiers c?
What is non linear data structure in c?
What is a char c?
What's the total generic pointer type?
Why c is called object oriented language?
What is c system32 taskhostw exe?
What is the difference between array_name and &array_name?
What is getch c?
What is the difference between single charater constant and string constant?
How many data structures are there in c?
What is pointer to pointer in c with example?
How to write c functions that modify head pointer of a linked list?
Explain how can I pad a string to a known length?