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
Why we write conio h in c?
What is a nested formula?
I have a varargs function which accepts a float parameter?
How are 16- and 32-bit numbers stored?
List a few unconditional control statement in c.
#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); }
Who developed c language and when?
How can you determine the maximum value that a numeric variable can hold?
Why enum is used in c?
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.
Is the exit() function same as the return statement? Explain.
Why do we use static in c?
Explain how can you be sure that a program follows the ansi c standard?
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
What is the size of empty structure in c?