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
difference between object file and executable file
which is conditional construct a) if statement b) switch statement c) while/for d) goto
How can you return multiple values from a function?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
Explain the difference between call by value and call by reference in c language?
What is the best way to store flag values in a program?
What is size of union in c?
How can I invoke another program or command and trap its output?
a program that can input number of records and can view it again the record
Explain what does it mean when a pointer is used in an if statement?
What are the different types of errors?
What is the difference between procedural and declarative language?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
Can you assign a different address to an array tag?
What was noalias and what ever happened to it?