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
How many bytes are occupied by near, far and huge pointers (dos)?
Can include files be nested?
What is meant by high-order and low-order bytes?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
Explain how does flowchart help in writing a program?
What is meant by gets in c?
How does struct work in c?
How can I delete a file?
Why main is used in c?
Explain the use of 'auto' keyword in c programming?
Can we declare function inside main?
Describe the order of precedence with regards to operators in C.
How can I send mail from within a c program?
Explain the properties of union.
using only #include