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 / optimistsushma
B)
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What does it mean when the linker says that _end is undefined?
What is meant by realloc()?
write a program to print largest number of each row of a 2D array
What do you mean by dynamic memory allocation in c? What functions are used?
What is void main ()?
Why c is a procedural language?
How to establish connection with oracle database software from c language?
What is structure in c language?
What are structures and unions? State differencves between them.
Why flag is used in c?
What are local static variables? How can you use them?
can we have joblib in a proc ?
Why c language?
Is it better to use a macro or a function?
Can a variable be both static and volatile in c?