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 / rakesh
B)only 2
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
How can this be legal c?
What does the c in ctime mean?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
explain how do you use macro?
What are the types of i/o functions?
What math functions are available for integers? For floating point?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
What is the code in while loop that returns the output of given code?
What are c header files?
Explain what is the concatenation operator?
How do I create a directory? How do I remove a directory (and its contents)?
How does normalization of huge pointer works?
How can I find out if there are characters available for reading?
What is LINKED LIST? How can you access the last element in a linked list?