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


Please Help Members By Posting Answers For Below Questions

int far *near * p; means

3108


How will you declare an array of three function pointers where each function receives two ints and returns a float?

770


What are the application of void data type in c?

685


What is difference between function overloading and operator overloading?

649


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)

1853






Is c high or low level?

569


What do you mean by command line argument?

634


What is a sequential access file?

644


What's the right way to use errno?

611


Is fortran still used in 2018?

582


What is return type in c?

633


If null and 0 are equivalent as null pointer constants, which should I use?

571


How many types of operators are there in c?

609


Why c language?

636


What are the advantages of c preprocessor?

699