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
What is "Duff's Device"?
Should I learn data structures in c or python?
What is n in c?
What is #define in c?
What is the size of empty structure in c?
What’s the special use of UNIONS?
Where are some collections of useful code fragments and examples?
What is the best way to store flag values in a program?
Tell me what are bitwise shift operators?
Explain what is the difference between null and nul?
Write a program of advanced Fibonacci series.
Explain what is the advantage of a random access file?
What is the advantage of using #define to declare a constant?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
Why do we use namespace feature?