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 / jitendra kumar arya
c
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
int far *near * p; means
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What are the application of void data type in c?
What is difference between function overloading and operator overloading?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
Is c high or low level?
What do you mean by command line argument?
What is a sequential access file?
What's the right way to use errno?
Is fortran still used in 2018?
What is return type in c?
If null and 0 are equivalent as null pointer constants, which should I use?
How many types of operators are there in c?
Why c language?
What are the advantages of c preprocessor?