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
Is array a primitive data type in c?
Write a C program to count the number of email on text
How do you determine whether to use a stream function or a low-level function?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
what is the difference between 123 and 0123 in c?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
Can we replace the struct function in tree syntax with a union?
What is build process in c?
How can I avoid the abort, retry, fail messages?
What are unions in c?
In a switch statement, explain what will happen if a break statement is omitted?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
How can you determine the maximum value that a numeric variable can hold?