12. 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 / basha
error: wrong type argument to increment
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How do you generate random numbers in C?
How many levels deep can include files be nested?
How can I write functions that take a variable number of arguments?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
What are static variables in c?
Explain setjmp()?
Can you please explain the difference between syntax vs logical error?
Why is structure padding done in c?
Explain the difference between ++u and u++?
Do you know the use of 'auto' keyword?
Why is %d used in c?
#include
`write a program to display the recomended action depends on a color of trafic light using nested if statments
What is the mean of function?
how can use subset in c program and give more example