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
What is a example of a variable?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
What is || operator and how does it function in a program?
What is your stream meaning?
Explain what is meant by 'bit masking'?
What is a good way to implement complex numbers in c?
Write the Program to reverse a string using pointers.
Why doesnt the call scanf work?
What is difference between structure and union in c programming?
Write a Program to find whether the given number or string is palindrome.
Is int a keyword in c?
How does selection sort work in c?
What is the use of void pointer and null pointer in c language?
Why isnt any of this standardized in c?
What is #define used for in c?