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

B)

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does it mean when the linker says that _end is undefined?

638


What is meant by realloc()?

683


write a program to print largest number of each row of a 2D array

1876


What do you mean by dynamic memory allocation in c? What functions are used?

662


What is void main ()?

617






Why c is a procedural language?

589


How to establish connection with oracle database software from c language?

1681


What is structure in c language?

627


What are structures and unions? State differencves between them.

621


Why flag is used in c?

659


What are local static variables? How can you use them?

651


can we have joblib in a proc ?

1659


Why c language?

653


Is it better to use a macro or a function?

659


Can a variable be both static and volatile in c?

612