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
Can we declare a function inside a function in c?
Do you know the use of 'auto' keyword?
What is a list in c?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
Write a program that accept anumber in words
Why do we use & in c?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
What is double pointer?
Do variables need to be initialized?
What is atoi and atof in c?
What is static memory allocation? Explain
What are header files and what are its uses in C programming?
What is the difference between c and python?
Can 'this' pointer by used in the constructor?
What is variable initialization and why is it important?