www.ThinkITI.com
Home
MCQ
Search
Free Apps
Important
Study Groups
Contact Us
Policy
Home
MCQ
Objective Questions
Engineering
Computer Science
Computer Science Set-1
C Programming
C Programming MCQ with Answers
216)
The program
main()
{
int i = 5;
i = (++i) / (i++);
printf ("%d", i);
prints
2
5
1
6
Answer
Answer is:
2
217)
The output of the following program
main( )
{
int a = 1, b = 2, c = 3;
printf("%d", a += (a += 3, 5, a));
}
will be
8
12
9
6
Answer
Answer is:
8
218)
The statement printf ("%d", 10 ? 0 ? 5 : 11 : 12 ) ;
10
0
12
11
Answer
Answer is:
11
219)
The statement printf ("%d", ++5) ; prints
5
6
an error message
garbage
Answer
Answer is:
an error message
220)
The statement printf ("%d", ( a++) ) ; prints
the current value of a
the value of a + 1
an error message
garbage
Answer
Answer is:
the current value of a
PREV
44
NEXT
41
42
43
44
45
46
47