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 / jitendra kumar arya
c
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is wrong with this statement? Myname = 'robin';
How to compare array with pointer in c?
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
Write a program to swap two numbers without using third variable?
How do you print an address?
Difference between malloc() and calloc() function?
What is the use of ?: Operator?
Are the expressions * ptr ++ and ++ * ptr same?
How does placing some code lines between the comment symbol help in debugging the code?
Are there any problems with performing mathematical operations on different variable types?
In C language, a variable name cannot contain?
Explain how can you restore a redirected standard stream?
What are control structures? What are the different types?
What is difference between main and void main?
What is static volatile in c?