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 / santhoo035

C

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

640


Tell me the use of bit field in c language?

634


How can I send mail from within a c program?

585


What is queue in c?

584


Explain the difference between null pointer and void pointer.

675






What is difference between scanf and gets?

616


What is c mainly used for?

601


What are the preprocessor categories?

641


Why c language is called c?

573


What is the importance of c in your views?

599


What are qualifiers?

619


Is it better to use a macro or a function?

659


Why c is called a middle level language?

636


What is type qualifiers?

669


What is size of union in c?

584