×
Login Or SignUp
Privacy Policy
Terms Of Service
freetests4u.com
Online Knowledge Sharing Platform
Login/SignUp
freetests4u.com
Blogs
Mock Tests
Videos
Jobs
16 .
What is the output of the following program segment ?
main()
{
long i = 65536;
printf("%d ", i);
}
A.
0
B.
-1
C.
1
D.
65
E.
65536
View Answer
Ans: 0
17 .
What will be output of the following program ?
#include<`stdio.h`> (Please neglect `` this signs)
int main()
{
int x;
x=10,20,30;
printf("%d",x);
return 0;
}
A.
10
B.
20
C.
30
D.
40
E.
None of these
View Answer
Ans: 10
18 .
main()
{
printf("%p", main());
}
A.
Prints 0.
B.
Is an error.
C.
Is an infinite loop.
D.
Prints the address of main function.
E.
None of these
View Answer
Ans: Prints the address of main function.
19 .
The << operator is used for
A.
Right shifting
B.
Left shifting
C.
Bitwise shifting
D.
Bitwise complement
E.
None of these
View Answer
Ans: Left shifting
20 .
The C language includes the header file standard input & output in
A.
stdlib.h library
B.
stdio.h library
C.
conio.h library
D.
#include library
E.
None of these
View Answer
Ans: stdio.h library
1
2
3
4
5
6
7
8
9
10
11
12