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
write a program fibonacci series and palindrome program in c
What is the difference between NULL and NUL?
Does c have enums?
What is New modifiers?
Is stack a keyword in c?
What is d'n in c?
Explain what is the difference between a string and an array?
Explain the advantages and disadvantages of macros.
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What do you mean by c what are the main characteristics of c language?
How will you write a code for accessing the length of an array without assigning it to another variable?
How many levels of pointers have?
Explain argument and its types.
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
What is the difference between #include