12. 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 / fakkad
2
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Can a pointer be volatile in c?
Explain the bubble sort algorithm.
How can I find out how much free space is available on disk?
Explain the concept and use of type void.
Compare interpreters and compilers.
What does 3 periods mean in texting?
Why void main is used in c?
What are terms in math?
What is ctrl c called?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
How is a macro different from a function?
Explain logical errors? Compare with syntax errors.
where are auto variables stored? What are the characteristics of an auto variable?
What does %c do in c?
What is the meaning of 2d in c?