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
Explain threaded binary trees?
what is different between auto and local static? why should we use local static?
Are bit fields portable?
What are pointers in C? Give an example where to illustrate their significance.
When do we get logical errors?
How many data structures are there in c?
What is scope rule in c?
What is a const pointer?
code for replace tabs with equivalent number of blanks
Do pointers need to be initialized?
What is hungarian notation? Is it worthwhile?
Are the variables argc and argv are always local to main?
Which is best book for data structures in c?
is it possible to create your own header files?
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?