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

B

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to find anagram without using string functions using only loops in c programming

2708


Write a code of a general series where the next element is the sum of last k terms.

581


What are the properties of union in c?

577


Explain bit masking in c?

624


What are the different types of control structures?

576






Explain what are binary trees?

602


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

638


What is the c value paradox and how is it explained?

567


What is a scope resolution operator in c?

739


Explain the ternary tree?

593


Are global variables static in c?

664


What is the use of extern in c?

637


formula to convert 2500mmh2o into m3/hr

487


Why isnt there a numbered, multi-level break statement to break out

581


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

970