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 / hussain reddy
c
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What does double pointer mean in c?
Explain zero based addressing.
How can you pass an array to a function by value?
How would you rename a function in C?
What is uint8 in c?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
Explain modulus operator. What are the restrictions of a modulus operator?
Hai what is the different types of versions and their differences
What is the advantage of a random access file?
why return type of main is not necessary in linux
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
What is difference between main and void main?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
Why is extern used in c?
Why isn't it being handled properly?