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 / jitendra kumar arya
c
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
What is a header file?
Are the outer parentheses in return statements really optional?
Compare array data type to pointer data type
Calculate 1*2*3*____*n using recursive function??
Is array a primitive data type in c?
Which is more efficient, a switch statement or an if else chain?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
What is nested structure with example?
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.
Explain what is the difference between a free-standing and a hosted environment?
Why #include is used in c language?
Why is it important to memset a variable, immediately after allocating memory to it ?
Why do we need a structure?
Explain the difference between ++u and u++?