everything
Labels
CODING
TECHNOLOGY
Tuesday, February 18, 2014
Coding
What is the output of this C code?
#include <stdio.h>
main
(
)
{
if
(
sizeof
(
int
)
>
-
1
)
printf
(
"True"
)
;
else
printf
(
"False"
)
;
a) True
b) False
Answer:b
Output:
$ cc pgm.c
$ a.out
False
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment