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 / santhoo035
C
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Is a house a shell structure?
Explain the difference between null pointer and void pointer.
Why doesn't C support function overloading?
What is the use of putchar function?
How do you determine the length of a string value that was stored in a variable?
Difference between MAC vs. IP Addressing
What do you mean by command line argument?
Write a program to check armstrong number in c?
What is the difference between #include
What is unsigned int in c?
How can I swap two values without using a temporary?
How can I manipulate individual bits?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode