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 / fakkad
2
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How do I swap bytes?
Explain pointers in c programming?
How do we open a binary file in Read/Write mode in C?
What are the complete rules for header file searching?
What are run-time errors?
What is malloc() function?
What is scanf_s in c?
When should a type cast be used?
Is null equal to 0 in sql?
code for quick sort?
Is that possible to add pointers to each other?
What is structure data type in c?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
What is the symbol indicated the c-preprocessor?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?