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 / santhoo035
C
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is the equivalent code of the following statement in WHILE LOOP format?
What is typeof in c?
How can a process change an environment variable in its caller?
What is output redirection?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
Explain output of printf("Hello World"-'A'+'B'); ?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
Explain can the sizeof operator be used to tell the size of an array passed to a function?
Which is the memory area not included in C program? give the reason
Explain how can I prevent another program from modifying part of a file that I am modifying?
What does %p mean c?
Why c is called procedure oriented language?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
How many header files are in c?
Where local variables are stored in c?