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 / hussain reddy

c

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain threaded binary trees?

668


what is different between auto and local static? why should we use local static?

630


Are bit fields portable?

667


What are pointers in C? Give an example where to illustrate their significance.

737


When do we get logical errors?

628






How many data structures are there in c?

608


What is scope rule in c?

595


What is a const pointer?

622


code for replace tabs with equivalent number of blanks

1629


Do pointers need to be initialized?

553


What is hungarian notation? Is it worthwhile?

683


Are the variables argc and argv are always local to main?

562


Which is best book for data structures in c?

588


is it possible to create your own header files?

629


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

1904