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


Please Help Members By Posting Answers For Below Questions

Why we write conio h in c?

573


What is a nested formula?

611


I have a varargs function which accepts a float parameter?

583


How are 16- and 32-bit numbers stored?

729


List a few unconditional control statement in c.

564






#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

635


Who developed c language and when?

592


How can you determine the maximum value that a numeric variable can hold?

643


Why enum is used in c?

531


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4511


Is the exit() function same as the return statement? Explain.

668


Why do we use static in c?

636


Explain how can you be sure that a program follows the ansi c standard?

870


if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above

717


What is the size of empty structure in c?

599