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
Answers were Sorted based on User's Feedback
what is purpose of fflush(stdin) function
Explain the properties of union. What is the size of a union variable
I need previous papers of CSC.......plz help out by posting them.......
Explain the difference between null pointer and void pointer.
macros and function are related in what aspect? a)recursion b)varying no of arguments c)hypochecking d)type declaration
12 Answers HCL, Infosys, Microsoft,
what is the code for getting the output as * ** ***
how to add our own function in c library please give details.?
write a progrmm in c language take user interface generate table using for loop?
difference between string and array?
write c program without semicolon
11 Answers MindTech, TCS, Wipro,
Explain #pragma in C.
What is substring in c?