Input Output and Operators
Input Output and Operators
16 16 16 16 16 20 16
Arithmetic operArithmetic operArithmetic operArithmetic operArithmetic operArithmetic operArithmetic oper
|| || + || || || ||
True True True True True True False
2,1 2,1 2,1 2,1 4,2 2,1 2,1
24 24 24 24 24 24 24
II and IV II and IV II and IV II and IV II and IV II and IV II and IV
20 20 12 20 20 20 20
a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 a = 4, c = 8
4 4 4 4 4 4 4
Real number Real number Real number Real number Real number Real number Real number
a = 14 a = 14 a = 14 a = 14 a = 14 a = 14 a = 14
8 8 8 8 8 8 8
Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat
(x – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (y – (x/y) * y)
0 0 0 0 0 0 0
35 35 35 35 35 38 35
0 0 0 0 0 0 1
1 1 1 1 1 1 1
-10 -10 -10 -10 -10 -10 -9
0 0 12 0 0 0 0
14 14 14 14 14 14 14
Logical OperatoLogical OperatoLogical OperatoLogical OperatoBitwise OperatoLogical OperatoLogical Operato
2 2 2 2 2 2 2
-9 -9 -9 -9 -9 -9 -9
11,11 11,11 11,11 11,11 11,11 11,11 10,11
Compile time erCompile time erCompile time erCompile time erCompile time erCompile time erCompile time er
8 8 8 8 8 8 8
80 80 80 80 80 80 80
31 31 31 31 31 31 31
GEC GEC GEC GEC GEC IT GEC
/, *, % /, *, % Only * and / Only * and / /, *, % /, *, % /, *, %
1 1 1 1 1 18 1
0 0 0 0 0 400 0
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
identifiers identifiers identifiers identifiers identifiers identifiers identifiers
keywords keywords keywords keywords keywords keywords keywords
All of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operato
-128 -128 -128 -128 128 Garbage Value -128
Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in
int int int int int int int
// // // // // // //
16 16 16 16 12 16 16
Arithmetic operArithmetic operRelational oper Arithmetic operArithmetic operArithmetic operArithmetic oper
|| || || || || || ||
True True True True True True True
4,2 2,1 2,1 2,1 2,1 4,2 4,2
24 24 24 23 24 24 24
II and IV II and IV II and IV II and IV II and IV II and IV
20 20 12 20 20 20
a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 a = 4, c = 6 a = 4, c = 8 a = 4, c = 8 a = 4, c = 6
64 4 4 4 64 4 8
Real number Real number Real number Real number Integer Real number Real number
a = 14 a = 14 a = 14 a = 14 a = 14 compiler error. a = 14
8 8 8 7 7 8 7
Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat
(y – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (y – (x/y)) (y – (x/y)) (x – (x/y) * y)
%= 0 0 0 0 0 0
38 35 35 -2 -2 35 35
0 0 0 0 0 0
1 10 Error 1 1
-10 -10 -10 -10 -10 -10 -10
0 0 0 10 0 0 0
14 14 14 14 8 0 0
Logical OperatoLogical OperatoLogical OperatoLogical OperatoBitwise OperatoBitwise OperatoLogical Operato
2 2 2 2 2 2 2
-9 -9 1 -1 122 -9 -9
11,11 11,10 11,11 11,11 11,11 11,11 10,11
Compile time er1 1 Compile time er1 Compile time er1
8 8 8 8 8 8 8
80 80 80 80 80 80
31 35 1 20 31 1 31
GEC GEC GEC IT GEC GEC GEC
/, *, % /, *, % /, *, % /, *, % /, *, % /, *, % /, *, %
1 1 1 1 2 1 1
0 0 0 0 0 0 0
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
identifiers identifiers identifiers identifiers identifiers
keywords keywords keywords keywords keywords keywords
All of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operato
128 -128 -128 -128 128 -128 -128
Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in
int int int int int int int
// // // // // // //
16 16 16 16 16 16 16
Arithmetic operArithmetic operArithmetic operArithmetic operArithmetic operArithmetic operRelational oper
|| || || || || || +
False False False False True True True
2,1 2,1 4,2 2,1 4,2 2,1 2,1
24 24 24 24 24 24 24
II and IV II and IV I and II II and III II and IV II and IV II and IV
12 Either 12 or 20 20 20 12 12 12
a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 b = 3, c = 6 a = 4, c = 8 a = 4, c = 6 a = 4, c = 8
64 4 4 4 4 4 4
Depends on theReal number Integer Real number Integer Integer Integer
a = 14 a = 14 a = 14 a = 14 a = 14 a = 14 a = 14
8 8 8 7 7 8 8
Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat
(x – (x/y) * y) (x – (x/y)) (y – (x/y) * y) (x – (x/y) * y) (y – (x/y)) (x – (x/y) * y) (x – (x/y) * y)
0 0 %= 0 0 0 0
35 38 35 35 -2 35 -2
1 Error 0 0 0 0 0
1 1 1 1 1 1 1
10 -10 -10 -10 -10 -10 -10
0 10 0 12 0 0 10
14 14 14 14 14 14 6
Logical OperatoLogical OperatoBitwise OperatoLogical OperatoSpecial OperatoLogical OperatoSpecial Operato
-2 3 2 2 -2 3 2
122 1 -9 122 122 1 -1
10,11 11,11 11,11 10,11 11,11 10,11 11,11
Compile time erCompile time er1 4 1 4 1
8 8 8 8 8 8 8
80 80 80 80 80 80 80
31 31 31 1 31 1 31
GEC GEC Error GEC GEC GEC GEC
/, *, % /, *, % /, *, % /, *, % /, *, % /, *, % /, *, %
1 1 1 1 1 2 1
1 1 0 0 0 1 0
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
identifiers identifiers keywords keywords tokens identifiers keywords
keywords keywords keywords keywords keywords keywords keywords
Decimal integerAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoAdditional oper Bitwise operato
-128 Garbage Value -128 Garbage Value 128 -128 -128
Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in
int int int int int int double
// // // // // // //
16 16 16 16 12 12 16
Arithmetic operArithmetic operArithmetic operArithmetic operArithmetic operLogical operato Logical operato
|| || || || +
True True True True False True True
2,1 4,2 2,1 4,2 2,4 2,1 2,1
24 24 24 24 24 24 24
II and IV I and II II and IV II and IV II and IV I and III
20 20 12 Either 12 or 20 20 12
a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 b = 3, c = 6 a = 4, c = 8 a = 4, c = 6
4 4 4 4 4 4 4
Integer Real number Real number Integer Real number Real number
a = 14 a = 14 a = 14 a = 14 a = 14
8 8 8.0 7 8 7
Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat
(x – (x/y) * y) (x – (x/y) * y) (y – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y)
0 0 0 0 %= /= 0
34 -2 34 35 35 35
Error 0 0 0 0 1 10
10 1 1 1 1 0 1
-10 -10 -9 -10 -10 -10 -10
0 0 0 10 10 0
14 14 14 14 0 14 14
Increment/DecrLogical OperatoLogical OperatoSpecial OperatoLogical OperatoLogical OperatoBitwise Operato
-2 -2 -2 -2 -2
-9 -9 -9 -9 -9 -1 -9
10,11 10,11 11,11 11,11 10,11 11,11
1 Compile time erCompile time er1 Compile time erCompile time erCompile time er
8 8 8 8 8 8
0 80 80 80 80 80 80
31 35 35 1 31 1 31
GEC GEC GEC GEC GEC GEC GEC
/, *, % Only * and / /, *, % /, *, % /, *, %
1 1 1 2 1 18
0 0 0 0 0 1 1
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
identifiers identifiers identifiers identifiers identifiers identifiers
keywords keywords keywords keywords keywords data types keywords
Decimal integer constant All of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operatoBitwise operator Bitwise operatoBitwise operatoBitwise operatoBitwise operato
128 -128 -128 Garbage Value -128 -128 128
Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in
int int int int int int
// // // // // // //
20 16 16 12 16 16 16
Logical operato Arithmetic operArithmetic operArithmetic operArithmetic operArithmetic operArithmetic oper
+ || || + || || ||
True True False True True True
4,2 2,1 2,4 4,2 4,2 4,2 2,4
24 24 4 3 24 24 24
II and III II and IV I and III I and III II and IV II and IV I and II
12 Either 12 or 20 4 12 12 20
a = 4, c = 8 a = 4, c = 6 a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 a = 4, c = 6 a = 4, c = 8
64 64 4 4 64 4 4
Integer Real number Real number Integer Depends on theReal number
a = 14 a = 14 a = 10 a = 14 a = 14 a = 14 a = 14
8 8 8 8 8 8 8
Ternary Operat Ternary Operat Ternary Operat Ternary Operator Ternary Operat Ternary Operat
(x – (x/y) * y) (y – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y)) (x – (x/y) * y)
0 0 /= 0 0 0 /=
34 35 35 34 34 35
1 1 10 Error 1 0 1
Error 1 1 -5 1 1
-9 -10 -10 -9 -10 -10 -10
0 0 0 0 0 0 10
14 14 14 14 14 0 14
Logical OperatoLogical OperatoLogical OperatoLogical OperatoLogical OperatoLogical OperatoIncrement/Decr
2 2 2 3 2 2 -2
-9 -9 -9 1 -1 -1 -1
10,11 10,11 11,11 11,11 11,11 11,11 11,11
Compile time erCompile time er1 Compile time error Compile time er4
8 8 8 8 8 8 8
80 40 80 80 80 20 40
20 31 31 20 35 1 1
GEC GEC GEC GEC GEC Error GEC
/, *, % /, *, % /, *, % /, *, % /, *, % /, *, % /, *, %
19 1 1 19 1 1 1
Error Error 1 Error 0 0 0
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Ray Boyce
identifiers identifiers identifiers keywords keywords identifiers
keywords data types identifier keywords keywords identifier constant
All of the aboveAll of the aboveOctal integer c All of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operator Bitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operato
-128 128 -128 -128 -128 Garbage Value -128
Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in
int int int int int int int
// // // // // // //
12 16 16 16 16 16 16
Arithmetic operArithmetic operLogical operato Relational oper Arithmetic operArithmetic operArithmetic oper
++ ++ + ++ || || +
True False True True True True False
2,1 2,1 2,1 2,4 2,4 4,2 4,2
24 24 24 24 24 24
II and IV II and III II and III II and IV II and IV II and IV I and III
4 Either 12 or 20 12 20 Either 12 or 20 20
a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 a = 4, c = 6 a = 4, c = 8 a = 4, c = 8
4 64 4 64 4 8 64
Integer Real number Depends on theInteger Real number Real number Real number
a = 14 a = 14 a = 14 a = 14 a = 14 a = 14 a = 14
8 8 7 8.0 8 7
Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat
(y – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (y – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y)
0 0 0 0 0 0 0
35 -2 34 35 34 35 35
1 0 1 0 0 1 Error
1 1 1 Error 1 0
-10 -10 -10 -10 -10 -9 -10
1 0 0 0 0 0 0
8 14 14 14 6 8 14
Logical OperatoLogical OperatoBitwise OperatoLogical OperatoLogical OperatoLogical OperatoBitwise Operato
-2 2 0 2 3 -2 -2
1 122 -9 -9 1 -9 1
10,11 10,11 11,11 11,11 11,11 11,11 11,11
Compile time er4 1 3 1 Compile time erCompile time er
8 8 8 8 8 8 4
80 80 80 0 80 80
31 35 20 35 1 31 35
GEC GEC GEC GEC GEC GEC
/, *, % /, *, % /, *, % /, *, % /, *, % /, *, %
2 1 19 1 1 19 1
0 0 1 0 0 1 1
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
identifiers identifiers identifiers keywords reserved keywoidentifiers identifiers
keywords data types keywords keywords constant keywords keywords
All of the aboveDecimal integerAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operatoAdditional oper Bitwise operatoLogical operato None of the ab Bitwise operatoBitwise operato
128 128 128 Garbage Value 128 -128
Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in
int int int int int int int
// // // // // // //
16 12 0 16 16 16
Arithmetic operLogical operato Relational oper Arithmetic operArithmetic operArithmetic operArithmetic oper
|| + ++ || || +
False True True True False False False
2,1 2,1 4,2 2,1 2,4 4,2 2,1
24 24 24 24 24 24 3
II and IV II and III II and IV II and IV I and II II and III
12 20 20 12 20 Either 12 or 20
a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 a = 4, c = 6 a = 4, c = 6
4 4 4 32 4 4
Depends on theReal number Real number Real number Integer Depends on the
a = 14 a = 14 a = 14 a = 14 a = 14 a = 14 a = 14
8.0 8 7 8.0 7 7 7
Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat
(x – (x/y) * y) (y – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y)) (y – (x/y)) (x – (x/y) * y)
0 0 0 0 0 0 0
35 34 34 35 35 34 -2
0 1 0 Error 1 0
1 Error 0 1 1 -5
-9 -9 -10 -10 -10 -10 -10
0 0 0 10 0 0 1
14 14 0 14 14 14 0
Logical OperatoLogical OperatoBitwise OperatoLogical OperatoLogical OperatoLogical OperatoBitwise Operato
2 0 2 3 2 2 2
-9 -9 -1 -1 -9 -9 -9
11,11 11,11 11,11 11,11 10,11 11,11
Compile time erCompile time er1 4 4 4 Compile time er
8 4 8 10 8 4
80 80 80 20 0 80 80
1 1 1 35 31 31
GECIT GEC GEC GEC GEC Error
/, *, % /, *, % /, *, % Only * and / /, *, % /, *, %
1 2 1 18 1 1 2
0 0 Error Error 1 0 0
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
identifiers tokens keywords identifiers identifiers identifiers
keywords keywords data types keywords keywords keywords keywords
of the above All of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operato
-128 128 128 -128 128 0
Temperature in Temperature in Temperature in Compiler Error Temperature in Fahrenheit is 4 Temperature in
int int int int int
// // // // // //
16 16 16 20 16 20 16
Logical operato Relational oper Arithmetic operArithmetic operLogical operato Arithmetic operArithmetic operators
% || ++ || + || ||
True True True True True False True
2,1 2,1 4,2 2,4 2,1 2,1 4,2
24 24 24 24 24 24 23
I and III II and III II and IV II and IV II and IV II and IV I and III
Either 12 or 20 Either 12 or 20 12 Either 12 or 20 20 20 12
a = 4, c = 6 a = 4, c = 8 a = 4, c = 6 a = 4, c = 8 a = 4, c = 8 a = 4, c = 6 a = 4, c = 8
8 32 4 32 4 32 64
Depends on theReal number Integer Real number Integer Real number Depends on the
a = 14 a = 14 a = 14 a = 14 a = 14 a = 14 compiler error.
7 8.0 7 8 7 0 8
Ternary Operat Ternary Operat Ternary Operat Ternary Operat If-Else OperatorTernary Operat Ternary Operat
(y – (x/y) * y) (x – (x/y)) (x – (x/y) * y) (x – (x/y) * y) (y – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y)
0 0 0 %= 0 += 0
35 34 34 35 38 35 38
Error 0 Error Error Error 1 0
1 1 Error 10 1 Error 10
-10 -10 -10 10 -10 -10 10
0 10 0 0 0 0 10
14 0 14 6 14 14 14
Logical OperatoLogical OperatoLogical OperatoLogical OperatoBitwise OperatoBitwise OperatoLogical Operators
0 2 2 -2 2 2 -2
-9 -9 1 -1 -9 122 122
10,10 11,11 10,11 11,11 10,11 10,10 10,11
1 1 1 Compile time erCompile time er4 Compile time error
8 4 8 8 8 8 8
80 0 80 0 0 80 80
35 35 1 1 1 1 35
GEC GEC GEC Error GEC GEC GEC
/, *, % /, *, % /, *, % /, *, % /, *, % Only / /, *, %
1 2 2 18 1 18 18
Error 0 0 0 1 1 0
Dennis Ritchie Ray Boyce Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
identifiers identifiers reserved keywoidentifiers keywords identifiers identifiers
keywords keywords keywords keywords keywords keywords keywords
All of the aboveAll of the aboveAll of the aboveHexadecimal in Decimal integerAll of the aboveAll of the above
Bitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operato
Garbage Value Garbage Value Garbage Value Garbage Value Garbage Value 128 Garbage Value
Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in Fahrenheit is 4
int int int int int int int
// // /* // // // //
12 12 20 16 16 16
hmetic operators Arithmetic operArithmetic operArithmetic operArithmetic operArithmetic operArithmetic oper
|| ++ || || + + ||
False True True True False True True
4,2 4,2 2,1 4,2 2,1
24 24 24 24 23 24 24
II and III II and III II and IV II and IV II and IV II and III I and III
20 20 4 Either 12 or 20 20 12 12
a = 4, c = 8 a = 4, c = 6 a = 4, c = 8 a = 4, c = 6 a = 4, c = 8 a = 4, c = 8 a = 3, c = 8
4 64 4 64 64 64 64
Real number Depends on theReal number Real number Real number Real number Integer
a = 14 a = 14 a = 14 a = 14 a = 14 a = 14 a = 14
8 8 7 8.0 8 8.0
Ternary Operat Ternary Operat If-Else OperatorTernary Operat Ternary Operat Ternary Operat Ternary Operat
(x – (x/y)) (x – (x/y)) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y))
0 0 0 0 /= 0
35 35 35 35 34 38
Error 1 0 Error 0 0
1 1 0 1 0 10 1
-10 -10 -10 -10 -9 -10 -10
0 12 0 0 12 10
14 14 14 14 14 14 0
cal Operators Bitwise Operators Logical OperatoIncrement/DecrLogical OperatoSpecial Operato
-2 2 2 -2 -2 2 3
-9 -9 122 122 -9 -9 1
10,11 10,10 10,10 10,11 10,11 11,11 11,11
mpile time error 1 4 Compile time er1 Compile time er1
8 8 8 4 8 4 8
40 20 0 0 80 20
31 1 20 20 35 35 1
GEC GEC GEC GECIT GEC GEC GEC
/, *, % /, *, % +, - /, *, % /, *, % /, *, %
1 1 1 2 18 2 18
1 0 400 0 0 0
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
tokens identifiers identifiers identifiers keywords identifiers
keywords keywords keywords identifier keywords
All of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveOctal integer c All of the above
Bitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoLogical operato Bitwise operato
-128 128 Garbage Value 128 Garbage Value 0 -128
mperature in Fahrenheit is 4 Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in
int int double int int
// /* // // // //
16 16 16 16 12 16
Arithmetic operArithmetic operLogical operato Logical operato Relational oper Relational oper Relational oper
|| || + + || || ||
True True True True True False True
2,4 2,1 2,1 4,2 2,1 2,1 4,2
24 24 24 3 23 24
I and II II and III II and IV II and IV II and IV II and IV II and III
12 12 20 20 12 Either 12 or 20 12
a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 a = 4, c = 6 a = 4, c = 6 a = 4, c = 8 a = 4, c = 6
4 4 4 8 4 4
Depends on theReal number Real number Depends on theInteger Depends on theInteger
a = 14 a = 14.867 a = 14 a = 14 a = 14 a = 14.867
8 8 7 8 8 8 0
Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat
(x – (x/y)) (y – (x/y) * y) (y – (x/y)) (y – (x/y) * y) (x – (x/y) * y) (y – (x/y) * y) (x – (x/y) * y)
0 %= 0 0 %= /= /=
38 35 35 35 35 35 38
0 1 10 0 Error 0
0 -5 0 1 10 1 1
-9 -9 6 -9 -9 -9 -9
1 10 0 0 0 1
0 8 6 14 0 14
Logical OperatoSpecial OperatoBitwise OperatoSpecial OperatoBitwise OperatoIncrement/DecrBitwise Operato
2 2 2 3 0 2 2
1 -9 1 -9 122 -1 122
10,11 10,11 11,11 10,11 10,11 11,11 10,11
1 4 Compile time erCompile time erCompile time er4 Compile time er
8 8 8 8 8 8 8
0 80 80 80 0 20 80
35 1 1 1 31 31 20
GEC GEC GEC GEC GEC GECIT GEC
/, *, % /, *, % /, *, % /, *, % /, *, % /, *, % +, -
1 1 19 18 2 1 1
0 1 1 Error Error 0 0
Dennis Ritchie Dennis Ritchie Dennis Ritchie James Gosling Dennis Ritchie Dennis Ritchie Dennis Ritchie
identifiers identifiers identifiers tokens identifiers keywords identifiers
keywords keywords keywords keywords keywords identifier keywords
Decimal integerDecimal integerAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operatoLogical operato Bitwise operatoBitwise operatoLogical operato Bitwise operatoBitwise operato
128 128 -128 Garbage Value -128 128 128
Temperature in Temperature in Fahrenheit is 3 Temperature in Temperature in Temperature in Temperature in
int int int int int int int
// // // // /* // //
16 16 16 16 20 16 20
Arithmetic operArithmetic operArithmetic operRelational oper Relational oper Logical operato Arithmetic oper
|| || + % ++ + ||
True True True True True True True
4,2 4,2 4,2 2,1 2,1 2,4 2,8
24 24 24 24 4 3 24
II and IV II and IV II and IV I and III II and IV II and III II and III
12 20 20 12 12 20 Either 12 or 20
a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 a = 4, c = 6 a = 4, c = 8 a = 4, c = 8
8 4 4 8 4 64
None of the ab Depends on theInteger Depends on theInteger Real number Real number
a = 14 a = 14 a = 14 a = 14 a = 14 a = 14 a = 14
8 7 7 7 7 8 8.0
Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat
(x – (x/y) * y) (y – (x/y)) (x – (x/y) * y) (y – (x/y)) (x – (x/y)) (x – (x/y) * y) (x – (x/y) * y)
0 0 %= %= 0 0 0
35 38 35 35 38 35 34
0 1 1 Error 10 1
10 10 1 0 Error Error
10 -9 -10 -10 -10 10 -10
10 10 0 0 1 0
14 6 8 14 14 14 14
Increment/DecrLogical OperatoIncrement/DecrLogical OperatoLogical OperatoBitwise Operators
2 2 2 2 0 3 2
122 1 122 -9 122 1 122
10,11 11,11 10,11 10,11 10,11 10,11 10,11
1 Compile time error 4 Compile time erCompile time er
8 8 4 8 8 4
80 20 80 80 80 40 20
1 1 31 31 35 35 31
GEC GECIT GEC GECIT GEC Error GEC
/, *, % +, - /, *, % Only * and / /, *, % /, *, % /, *, %
18 19 1 1 19 18
Error 400 Error 1 Error Error Error
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
reserved keywoidentifiers identifiers identifiers reserved keywoidentifiers identifiers
keywords keywords keywords keywords keywords data types keywords
Hexadecimal in All of the above Decimal integerAll of the aboveAll of the aboveDecimal integer
Bitwise operatoBitwise operatoLogical operato Bitwise operatoBitwise operatoBitwise operatoBitwise operato
128 -128 Garbage Value Garbage Value Garbage Value -128
Temperature in Compiler Error Temperature in Temperature in Temperature in Temperature in Temperature in
int int double int int int int
; ; // // // // //
20 16 16 16 20 16
Arithmetic operArithmetic operLogical operato Arithmetic operRelational oper Arithmetic operArithmetic oper
|| + + || || || ||
True True False True
4,2 2,1 2,1 2,4 2,1 4,2 2,8
24 24 24 24 24 24 3
II and IV II and III I and II II and IV II and IV II and IV
12 12 12 20 12 Either 12 or 20
a = 4, c = 8 a = 4, c = 6 a = 4, c = 6 a = 4, c = 8 a = 4, c = 6 a = 4, c = 8 a = 4, c = 6
4 64 4 4 4 4 4
Integer Integer Real number Real number Real number Real number
a = 14 a = 14 a = 14 a = 14 a = 14.867 a = 14
8.0 7 7 8 8.0 8.0 8.0
Ternary Operat Ternary Operat Ternary Operator If-Else OperatorBinary Operato Ternary Operat
(x – (x/y) * y) (x – (x/y)) (y – (x/y)) (x – (x/y)) (x – (x/y) * y) (x – (x/y) * y)
/= 0 0 0 %= 0 0
38 35 34 35 34 35 34
0 Error 0 0 Error Error 1
1 0 0 1 1 1 1
-10 -9 -10 10 -9
0 0 0 0 0 1
0 14 14 14 14 0
Bitwise OperatoSpecial OperatoLogical OperatoLogical OperatoBitwise OperatoLogical OperatoBitwise Operato
-2 0 2 2 2 3
-9 122 -9 -9 122 1
10,11 11,11 11,11 11,11 10,11 10,11 10,11
Compile time er1 1 Compile time erCompile time er1
8 8 10 8 8 4
40 80 40 40 20 80 20
31 1 1 31 20 31
GEC GECIT GECIT IT GECIT IT GEC
Only / /, *, % /, *, % /, *, % /, *, % +, -
2 2 1 18 18 1 19
400 0 0 1 1
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
keywords identifiers identifiers identifiers identifiers identifiers
constant keywords keywords keywords keywords keywords
Decimal integerAll of the aboveAll of the above All of the above All of the above
Bitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operato
128 Garbage Value Garbage Value Garbage Value Garbage Value -128 -128
Temperature in Compiler Error Temperature in Temperature in Temperature in Fahrenheit is 4 Temperature in
int int int int int int
// // /* // /* //
20 16 20 20 16 20
Arithmetic operLogical operato Arithmetic operRelational oper Arithmetic operEquality operat Arithmetic operators
|| + % || || + ||
True False True True True False True
2,1 2,4 2,1 2,1 2,1 2,1 2,1
3 24 3 24 3 24 4
I and II I and II I and III II and IV II and IV II and IV II and III
12 20 20 12 Either 12 or 20 20 12
a = 4, c = 6 a = 4, c = 8 a = 4, c = 6 a = 4, c = 6 a = 4, c = 6 a = 4, c = 8 a = 4, c = 8
4 4 4 64 64 4 32
Depends on theInteger Real number Depends on theDepends on theDepends on theDepends on the
a = 14 a = 14 a = 14.867 a = 14 a = 14 compiler error. a = 14
7 8.0 8 7 7 7 8
Ternary Operat Ternary Operat Ternary Operat Ternary Operat Comparison OpeTernary Operat Comparison Ope
(y – (x/y) * y) (y – (x/y)) (x – (x/y)) (y – (x/y) * y) (x – (x/y)) (x – (x/y) * y) (y – (x/y))
0 %= 0 0 0 0 /=
35 35 34 35 38 34 35
0 Error 1 1 0 1 0
1 1 1 10 1 0 Error
-9 -10 10 10 -10 -9 -10
0 0 0 0 10 0 0
0 8 14 14 8 0 14
Logical OperatoSpecial OperatoSpecial OperatoBitwise OperatoLogical OperatoIncrement/DecrLogical Operato
-2 -2 0 -2 -2 2 0
122 122 1 -9 -9 122 122
11,11 11,11 11,11 10,11 10,11 11,11 11,10
4 Compile time erCompile time er1 1 1 Compile time er
10 4 8 8 8 6 8
80 40 20 80 20 80 80
20 31 35 20 35 35
GECIT Error GEC GEC GEC Error Error
Only * and / /, *, % Only * and / Only * and / /, *, % Only * and / +, -
2 19 1 2 1 2 2
0 Error 0 1 Error 0 0
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
keywords reserved keyworeserved keywoidentifiers tokens identifiers keywords
keywords keywords identifier keywords keywords keywords data types
All of the aboveAll of the aboveDecimal integerAll of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoNone of the ab
-128 -128 Garbage Value 128 128 128 -128
Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in
double int float int int int int
// /* // // /* // //
16 16 12 16 16 20 16
hmetic operators Logical operato Arithmetic operArithmetic operArithmetic operArithmetic operArithmetic oper
++ + ++ + || || +
False False False False True False False
2,1 2,1 2,1 2,4 2,4 2,8 2,8
24 24 24 24 3 24 23
II and III I and II II and IV II and IV II and IV I and II II and IV
Either 12 or 20 12 Either 12 or 20 20 Either 12 or 20 20 4
b = 3, c = 6 a = 4, c = 6 b = 3, c = 6 a = 4, c = 8 a = 4, c = 6 a = 3, c = 8 a = 4, c = 6
4 4 4 64 32 4 4
Real number Integer None of the ab Integer Depends on theInteger Depends on the
a = 14 a = 14 a = 14 a = 14 a = 14 a = 10 a = 14
7 7 8 8 8 7 7
Ternary Operat Ternary Operat Binary Operato Ternary Operat Comparison OpeComparison OpeTernary Operat
(y – (x/y)) (y – (x/y) * y) (x – (x/y)) (x – (x/y)) (y – (x/y) * y) (x – (x/y)) (y – (x/y))
+= 0 /= 0 += /= %=
34 34 38 34 -2 35 35
Error 0 0 Error 0 0 0
10 0 -5 0 Error 1 1
-9 -10 -9 -9 -9 6 -9
0 0 0 0 0 0 0
14 8 14 6 14 14 14
Logical OperatoIncrement/DecrIncrement/DecrIncrement/DecrSpecial OperatoIncrement/DecrBitwise Operato
2 3 0 2 2 2 2
122 122 122 1 -9 122 -1
11,11 10,11 11,11 11,11 11,11 11,10 10,11
1 Compile time erCompile time erCompile time er1 1 4
8 8 4 4 8 8 4
80 0 0 20 0 80 80
31 31 35 20 35 31 20
GEC GECIT Error GECIT Error GEC IT
/, *, % /, *, % /, *, % /, *, % +, - Only * and / /, *, %
2 1 18 2 19 2 18
Error 0 0 1 Error 0 Error
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
identifiers tokens identifiers reserved keywoidentifiers keywords identifiers
keywords data types identifier keywords keywords identifier data types
Hexadecimal in All of the aboveAll of the aboveAll of the aboveAll of the aboveOctal integer c All of the above
Bitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operato
128 Garbage Value Garbage Value Garbage Value Garbage Value 0 128
Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in
int int int int int int int
// // // // // //
16 16 12 16 16 16 16
Arithmetic operEquality operat Arithmetic operArithmetic operArithmetic operArithmetic operArithmetic oper
|| + || ++ || + ||
True False True False True True
2,4 4,2 2,1 2,1 2,4 2,4 4,2
24 24 23 24 24 24 24
II and IV II and IV II and IV II and IV I and II II and III I and II
20 20 Either 12 or 20 20 12 12 12
a = 3, c = 8 a = 4, c = 6 a = 4, c = 6 b = 3, c = 6 b = 3, c = 6 a = 4, c = 6 a = 4, c = 6
4 4 8 4 4 4 64
Real number Real number Real number None of the ab Depends on theDepends on theInteger
a = 14 compiler error. a = 14.867 a = 14 a = 14 a = 14 a = 14
8 8.0 8.0 7 8 8 7
Comparison OpeTernary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat
(x – (x/y)) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y)) (y – (x/y) * y) (x – (x/y))
+= 0 0 0 0 0 0
-2 -2 -2 35 35 -2 38
0 0 0 Error 10 Error Error
10 -5 Error 1 -5 Error -5
10 10 -9 6 -10 -9 -10
12 0 0 12 1 12 0
8 8 14 8 14 14 6
Logical OperatoBitwise OperatoLogical OperatoLogical OperatoBitwise OperatoLogical OperatoLogical Operato
2 -2 -2 -2 -2 3 -2
122 122 1 -9 -1 1 -1
10,10 10,11 10,11 10,11 11,11 10,11
Compile time er1 4 1 Compile time er4
4 8 8 8 8 8 8
80 0 0 0 40 0 40
1 1 20 20 20 20 35
GEC Error IT Error IT Error Error
+, - /, *, % +, - Only * and / Only * and / Only / Only * and /
19 18 19 18 1 19 19
Error 1 400 400 1 400 0
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
keywords identifiers identifiers tokens keywords reserved keywoidentifiers
constant keywords keywords keywords keywords data types keywords
Hexadecimal in All of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the above
Logical operato Bitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operato
128 -128 128 Garbage Value 128 Garbage Value 128
Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in
int int int int float int int
// // // // // // //
16 16 12 12 16 16 16
Relational oper Equality operat Arithmetic operArithmetic operEquality operat Relational oper Equality operat
++ || || || % + ++
True False True True False True False
4,2 4,2 2,8 2,1 2,1 4,2 2,1
3 24 23 3 24 24 24
II and IV II and IV I and III II and III I and III II and III I and III
Either 12 or 20 12 12 20 20 12 20
a = 4, c = 8 a = 4, c = 6 a = 4, c = 8 b = 3, c = 6 a = 4, c = 8 a = 4, c = 8 a = 4, c = 6
8 64 8 32 8 64 4
Real number Real number Integer None of the ab Integer Integer Integer
compiler error. a = 14.867 a = 14.867 compiler error. a = 14 a = 14 a = 14
8 7 8 8 8 7 8.0
Ternary Operat Ternary Operat Comparison OpeBinary Operato Ternary Operat Ternary Operat Ternary Operat
(x – (x/y)) (x – (x/y) * y) (x – (x/y)) (x – (x/y) * y) (x – (x/y) * y) (y – (x/y)) (y – (x/y) * y)
+= 0 0 0 0 0 %=
38 34 -2 34 34 35 34
1 1 0 0 1 10 0
1 1 10 Error 0 -5 -5
-10 -10 6 -9 -9 -9 -9
0 1 0 0 0 12 10
0 0 14 14 6 14 0
Increment/DecrBitwise OperatoLogical OperatoLogical OperatoBitwise OperatoLogical OperatoLogical Operato
2 3 2 3 3 -2 2
122 122 -1 -1 122 1 1
11,10 11,11 10,11 10,11 10,11 11,11 10,11
1 4 Compile time er1 Compile time erCompile time erCompile time er
8 8 4 4 8 8
80 80 0 80 0 0 40
31 35 20 1 1 1 35
GECIT GEC GECIT GEC IT Error GECIT
/, *, % /, *, % Only * and / +, - /, *, % Only * and / Only * and /
1 1 1 19 1 1 2
1 0 1 Error 1 0 0
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
identifiers identifiers identifiers identifiers reserved keywoidentifiers
data types keywords keywords keywords keywords data types keywords
of the above All of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operatoLogical operato Bitwise operatoBitwise operatoLogical operato Bitwise operatoBitwise operato
Garbage Value Garbage Value 128 0 128 -128 Garbage Value
Temperature in Fahrenheit is 4 Temperature in Compiler Error Temperature in Temperature in Temperature in
int double int int int int
// // /* // /* //
16 12 16 0 16 20 16
Equality operat Arithmetic operArithmetic operRelational oper Arithmetic operArithmetic operArithmetic oper
+ || || || || ||
False True False True True True
2,4 4,2 2,8 4,2 2,8 4,2
3 24 4 24 24 4 3
II and IV II and IV II and III II and IV II and IV
12 12 12 20 12
a = 4, c = 8 a = 4, c = 6 a = 4, c = 6 a = 4, c = 8 b = 3, c = 6 a = 4, c = 6
4 4 8 4 4 64
None of the ab Depends on theReal number Integer Real number Depends on theDepends on the
a = 14 compiler error. compiler error. a = 14 compiler error. a = 14
7 7 8.0 8 7 8 7
If-Else OperatorTernary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat
(x – (x/y) * y) (x – (x/y)) (x – (x/y) * y) (y – (x/y) * y) (x – (x/y) * y)
0 0 0 %= 0 /= 0
35 35 34 -2
1 1 1 0 0
10 1 Error Error Error 1 0
-10 -10 -9 -10 10 -9 -10
10 0 0 0 1 10 0
8 8 14 0 8 14
Logical OperatoIncrement/DecrLogical Operators Logical OperatoSpecial Operato
-2 -2 0 2 2 0
-9 122 -9 -1 122
10,11 11,11 10,11 11,11 11,11 10,11 10,11
1 Compile time er1 1 1 1
8 8 8 8
80 20 0 80 0
20 1 1 1 20
Error GECIT GEC GEC Error Error GEC
Only / +, - Only * and / Only * and / Only * and / /, *, % Only * and /
1 1 18 1 19 18 1
1 Error 400 0 0 Error 1
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
keywords reserved keywoidentifiers identifiers identifiers reserved keywoidentifiers
keywords keywords keywords keywords keywords keywords keywords
All of the aboveAll of the aboveOctal integer c All of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operatoBitwise operatoBitwise operatoBitwise operator Bitwise operator
128 Garbage Value Garbage Value Garbage Value 0 Garbage Value
Temperature in Temperature in Temperature in Fahrenheit is 3 Temperature in Temperature in Compiler Error
int double int float int double int
// /* // // //
16 20 16 16 12 16 16
Arithmetic operRelational oper Relational operators Logical operato Relational oper Arithmetic oper
% || ++ || ++ || %
True False True False True False True
2,1 2,4 2,1 2,1 2,1 2,4 2,4
24 24 3 24 24 3
II and IV II and III II and III II and III I and II I and II II and IV
Either 12 or 20 4 20 12 Either 12 or 20 4 12
b = 3, c = 6 a = 4, c = 6 a = 4, c = 6 a = 4, c = 6 a = 4, c = 6 a = 3, c = 8
8 64 8 64 64 32 64
Real number Real number Depends on the numbers used iReal number Integer Integer
a = 14.867 a = 14 a = 14.867 a = 14 a = 14 a = 14 compiler error.
8.0 7 8.0 8 7 8
Ternary Operat Ternary Operat Ternary Operat If-Else OperatorTernary Operat Ternary Operat Ternary Operat
(y – (x/y)) (x – (x/y)) (y – (x/y) * y) (x – (x/y)) (x – (x/y)) (x – (x/y))
%= 0 0 0 0 0 0
-2 34 35 35 34 -2 35
Error 0 0 0 0 Error 10
Error 1 0 -5 1 -5
-10 6 -9 10 10 10 -9
0 0 0 0 0 12 0
0 0 0 14 14 6 14
Increment/DecrSpecial OperatoIncrement/DecrLogical OperatoBitwise OperatoBitwise OperatoIncrement/Decr
3 -2 0 0 0 0 2
122 -9 1 -1 -9 122
10,10 10,11 11,11 11,10 11,11 11,11 11,11
Compile time er4 Compile time error 1 4 1
10 8 8 8 10 8 8
0 80 80 80 40 0 40
31 1 20 31 20 20 1
Error GEC GECIT Error GEC GEC GECIT
/, *, % /, *, % +, - /, *, % /, *, % /, *, %
18 19 2 18 2 19 1
Error 1 400 1 Error 0 400
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Ray Boyce Dennis Ritchie Dennis Ritchie
identifiers identifiers reserved keywoidentifiers reserved keywoidentifiers keywords
identifier keywords keywords keywords keywords keywords constant
All of the aboveAll of the aboveAll of the aboveAll of the aboveDecimal integerAll of the aboveAll of the above
Bitwise operatoBitwise operatoBitwise operatoBitwise operatoLogical operato Additional oper Bitwise operato
Garbage Value Garbage Value 0 128 -128 128 Garbage Value
Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in Compiler Error
double double double int int int
// /* // // // // ;
20 16 20 16 20 16 12
Arithmetic operArithmetic operArithmetic operLogical operato Arithmetic operEquality operat Arithmetic oper
|| || + + || || ||
True False False True True True True
2,1 2,1 2,4 4,2 2,1 4,2 4,2
24 23 24 3 24 24 3
II and IV II and III I and II I and II II and IV I and II I and III
12 Either 12 or 20 20 12 12 12 Either 12 or 20
a = 4, c = 6 a = 4, c = 6 a = 4, c = 8 a = 4, c = 8 a = 4, c = 6 a = 4, c = 6
64 8 32 4 64 32 32
Depends on theReal number Real number Depends on theReal number None of the ab None of the ab
compiler error. a = 10 a = 14 a = 14 a = 14 a = 14.867 compiler error.
7 8.0 7 8.0 7 0 8.0
Binary Operato Binary Operato Ternary Operat Ternary Operat Ternary Operat Ternary Operat Comparison Ope
(y – (x/y)) (y – (x/y) * y) (y – (x/y)) (x – (x/y)) (y – (x/y)) (x – (x/y)) (y – (x/y) * y)
0 0 0 %= %= 0 0
34 38 38 38 38 34
1 Error 0 1 0 1 0
1 1 Error 0 Error 1 10
-10 -10 -10 6 6 -10 10
1 10 0 12 0 1 0
0 14 14 14 14 0 6
Logical OperatoLogical OperatoBitwise OperatoLogical OperatoLogical OperatoIncrement/DecrLogical Operato
-2 -2 0 -2 2 -2 3
122 1 1 -1 122 -9
10,11 10,11 10,11 10,11 10,10 11,11 10,11
Compile time erCompile time er1 1 1 Compile time er1
8 4 4 8 4 8 10
0 80 0 80 20 40 80
20 35 1 31 35 20 1
GECIT GECIT GECIT Error GECIT Error GEC
Only * and / /, *, % /, *, % /, *, % /, *, % /, *, % /, *, %
2 19 2 18 2 1 18
0 400 400 0 400 1 0
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
keywords reserved keywoidentifiers identifiers reserved keywokeywords identifiers
keywords keywords keywords data types data types data types keywords
All of the aboveAll of the aboveAll of the aboveAll of the aboveHexadecimal in All of the aboveAll of the above
Bitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operato
128 -128 -128 0 Garbage Value 128 Garbage Value
Temperature in Temperature in Temperature in Temperature in Compiler Error Temperature in Temperature in
int char double int int int int
// // // // /* // //
16 20 16 20 20 16
Logical operato Arithmetic operEquality operat Arithmetic operArithmetic operLogical operato Arithmetic oper
+ + % || || +
True False True False True True
2,4 2,1 2,8 2,4 2,1 4,2
3 24 4 24 4 23
II and IV II and IV I and III II and IV I and III I and II
20 20 4 12
a = 4, c = 8 a = 4, c = 6 a = 3, c = 8 a = 4, c = 6 a = 4, c = 6 a = 4, c = 6
8 8 32 64 4 8 4
Real number Depends on theInteger Integer Real number Real number Depends on the
compiler error. a = 14.867 compiler error. a = 14 a = 10 a = 14
0 8 0 7 7 7 0
Ternary Operat Comparison OpeIf-Else OperatorComparison OpeTernary Operat Binary Operato Ternary Operat
(y – (x/y)) (y – (x/y)) (x – (x/y)) (x – (x/y)) (x – (x/y))
/= 0 0 0 0
38 35 35 -2 -2
0 Error 0 0 Error 1 10
1 1 1 1 Error 1 10
-9 6 -9 6 -10 -9 -10
10 0 0 0 0 12
14 0 14 14 14 14
Bitwise OperatoSpecial OperatoBitwise OperatoBitwise OperatoLogical Operators Increment/Decr
2 -2 2 -2 2 2
-1 122 1 122 122 -9 1
10,11 11,11 11,11 10,10 10,11 10,11
Compile time er1 Compile time erCompile time er1 1 4
10 8 8 8 8 8 8
0 0 80 0 0 0 80
1 1 31 1 1 31 31
GECIT GECIT GEC GEC Error Error
/, *, % /, *, % /, *, % Only / +, - /, *, % Only /
1 18 19 1 1 19
1 400 0 1 0 0 0
Ray Boyce Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
identifiers reserved keywotokens identifiers reserved keywoidentifiers tokens
keywords keywords keywords identifier identifier keywords keywords
All of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operatoNone of the ab Logical operato Additional oper Bitwise operatoBitwise operator
0 Garbage Value 128 -128 128 -128 128
Temperature in Temperature in Fahrenheit is 3 Temperature in Temperature in Fahrenheit is 3 Temperature in
int int float int int int int
/* // /* // // //
0 16 16 16 12 12 12
Logical operato Arithmetic operArithmetic operArithmetic operRelational oper Arithmetic operArithmetic operators
+ || || + || ++ ||
True True True True True False True
4,2 2,1 2,1 4,2 2,1 2,1
4 24 24 3 23 24 24
II and IV I and II I and II I and III I and III II and III I and II
Either 12 or 20 Either 12 or 20 12 12 Either 12 or 20 12 Either 12 or 20
a = 4, c = 8 a = 4, c = 6 a = 4, c = 6 a = 4, c = 8 a = 4, c = 6 a = 4, c = 8 a = 4, c = 6
4 4 32 64 4 4 4
Integer Integer Integer Real number Depends on theNone of the ab None of the ab
a = 14 compiler error. compiler error. compiler error. a = 14.867 a = 14.867 a = 14
8.0 7 0 7 7 8.0 7
Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat Comparison OpeIf-Else Operator
(y – (x/y)) (x – (x/y)) (y – (x/y) * y) (y – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y)
%= %= /= %= %= 0 /=
35 38 34 35 -2 -2 35
0 10 1 Error 0 1 1
10 Error 1 0 1 1 10
-9 -9 -9 -9 -9 -9 -9
0 12 1 1 0 10
0 0 6 14 14 0
Logical OperatoIncrement/DecrIncrement/DecrBitwise OperatoIncrement/DecrSpecial OperatoLogical Operato
-2 -2 2 2 -2 -2 -2
122 -1 -9 122 122 122 -9
10,11 10,11 11,11 11,10 10,11 10,11 10,11
1 4 Compile time er4 1 1 4
8 8 8 8 6 8 4
0 0 40 40 20 40 80
20 20 31 35 35 1 35
Error GEC GEC Error Error GEC Error
/, *, % /, *, % +, - Only * and / Only * and / Only * and / /, *, %
18 1 2 19 19 19 2
0 0 0 0 0 1 1
Dennis Ritchie Dennis Ritchie James Gosling Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
identifiers identifiers reserved keywoidentifiers keywords identifiers tokens
keywords keywords identifier keywords keywords keywords keywords
Decimal integerDecimal integerAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operatoAdditional oper Bitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operato
Garbage Value 128 128 Garbage Value -128 128 Garbage Value
Temperature in Temperature in Temperature in Temperature in Compiler Error Temperature in Temperature in
int int double char int int int
/* // /* // // // //
0 20 16 20 16 20 20
hmetic operators Arithmetic operators Arithmetic operArithmetic operArithmetic operArithmetic oper
+ || + || || ||
True True True False False True True
4,2 2,1 2,8 4,2 4,2
24 24 23 24 24 24 24
II and IV II and IV I and III I and II II and IV II and IV II and IV
20 Either 12 or 20 20 20 Either 12 or 20
a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 a = 3, c = 8 a = 4, c = 8 a = 4, c = 8
4 4 4 8 64 32
Integer Real number Real number Depends on theInteger Integer
a = 14 a = 14 a = 14 a = 14 a = 14 a = 14 a = 14.867
7 7 7 7 8.0
Ternary Operator Ternary Operat If-Else OperatorIf-Else OperatorTernary Operat Comparison Ope
(y – (x/y)) (x – (x/y)) (y – (x/y)) (x – (x/y)) (y – (x/y) * y)
0 += %= 0 /= 0 %=
38 -2 35 38 34
10 1 0 10 Error
Error Error 1 0 0
-9 10 -10 -9 6 -10 -10
12 0 0 1 0 12
14 14 0 14 0 0
Logical OperatoLogical Operators Bitwise OperatoLogical OperatoIncrement/DecrBitwise Operato
-2 -2 3 -2 -2
1 -9 -9 122 122
10,11 11,10 11,10 10,11 11,11
1 1 Compile time er4 Compile time erCompile time er
8 8 4 6 4 4
80 0 80 0 80 40 40
31 1 1 20 20
GEC Error GEC Error IT Error GEC
/, *, % /, *, % /, *, % /, *, % Only * and / /, *, % Only * and /
1 1 19 2 1
0 0 1 1 400 0
Dennis Ritchie Dennis Ritchie Dennis Ritchie James Gosling Dennis Ritchie Dennis Ritchie
identifiers identifiers identifiers identifiers reserved keywokeywords keywords
constant keywords data types keywords keywords data types keywords
Decimal integerAll of the above Decimal integerOctal integer c Octal integer c All of the above
Bitwise operatoBitwise operatoBitwise operatoAdditional oper Additional oper Bitwise operatoBitwise operato
128 128 Garbage Value 128 0
Compiler Error Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in
double double int double double
// // // // //
16 12 16 16 20 16 12
Arithmetic operEquality operat Arithmetic operLogical operato Logical operato Arithmetic operLogical operato
+ || + || || %
True True True True True False False
2,1 2,4 2,1 2,8 4,2 2,4 4,2
3 3 24 24 24 24 24
II and IV II and IV II and IV II and IV I and II I and II I and III
Either 12 or 20 12 12 Either 12 or 20 12 20 12
a = 3, c = 8 b = 3, c = 6 a = 4, c = 6 a = 4, c = 8 a = 4, c = 8 a = 4, c = 8 a = 4, c = 6
32 8 8 64 32 8 64
Real number Real number Depends on theReal number Integer Depends on theReal number
a = 14 a = 14 a = 14 a = 14.867 a = 14 a = 14 a = 14
8 8.0 7 8.0 7 8 8
Ternary Operat Binary Operato Ternary Operat Ternary Operat Ternary Operat Ternary Operat Ternary Operat
(y – (x/y) * y) (x – (x/y)) (x – (x/y)) (y – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (y – (x/y))
0 0 /= %= /= /= 0
38 -2 -2 35 -2 38 38
1 0 1 1 Error Error
0 1 0 10 10 Error Error
-9 -9 -9 10 -9 -9
0 10 10 10 0 0 0
8 14 0 14 6 0 8
Bitwise OperatoIncrement/DecrBitwise OperatoBitwise OperatoIncrement/DecrIncrement/DecrLogical Operato
0 2 -2 2 0 3 2
122 1 122 122 -9 122 122
10,11 10,11 10,11 10,11 10,11 11,10 10,11
1 1 1 1 Compile time erCompile time error
4 10 10 6 4 4 8
0 80 0 0 80 0 80
1 20 1 20 35 1 1
Error Error GEC IT GECIT Error GECIT
/, *, % /, *, % /, *, % /, *, % /, *, % Only * and / Only /
19 19 2 1 19 19 18
Error 0 Error 400 1 Error 400
Dennis Ritchie Dennis Ritchie Dennis Ritchie James Gosling Dennis Ritchie Dennis Ritchie Dennis Ritchie
keywords identifiers keywords reserved keywoidentifiers tokens identifiers
keywords identifier data types identifier identifier keywords keywords
Octal integer c All of the aboveAll of the aboveAll of the aboveAll of the aboveOctal integer c All of the above
Bitwise operatoLogical operato Bitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operato
0 Garbage Value -128 128 128 128
Compiler Error Compiler Error Temperature in Temperature in Temperature in Temperature in Temperature in
int int int int float int
// /* // // : // //
12 16 12 16 20 20 20
Relational oper Logical operato Arithmetic operEquality operat Relational oper Logical operato Relational oper
+ + || || || || +
True False True True False False True
2,1 2,8 2,1 2,4 2,4 2,1 2,1
3 24 4 24 24 24 24
II and III II and IV I and III II and IV II and IV I and II II and III
Either 12 or 20 20 12 4 20 4 12
a = 4, c = 6 a = 4, c = 6 a = 4, c = 6 a = 4, c = 8 a = 4, c = 8 a = 4, c = 6 a = 4, c = 6
64 32 32 32 8 64 8
Real number Integer Depends on theInteger Integer Integer Real number
a = 14 compiler error. a = 14 a = 14.867 compiler error. a = 14 a = 14.867
8.0 8.0 7 0 7 8 8
Comparison OpeIf-Else OperatorTernary Operat Comparison OpeTernary Operat Ternary Operat Ternary Operat
(x – (x/y) * y) (y – (x/y) * y) (y – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y))
0 0 0 /= 0 %= 0
-2 35 -2 -2 -2 38 -2
10 Error 1 1 1 1 1
Error Error 0 0 Error Error Error
-9 -10 10 10 -9 -10 -9
12 12 10 1 1 0 10
14 0 0 14 8 14 14
Increment/DecrSpecial OperatoIncrement/DecrBitwise OperatoLogical OperatoLogical OperatoSpecial Operato
2 2 0 2 3 -2 2
122 1 122 1 122 122 1
10,11 10,11 11,10 11,11 10,11 10,10 10,11
Compile time erCompile time erCompile time er4 1 1 Compile time er
4 10 4 4 10 10 8
0 0 0 0 0 0 0
35 35 1 35 1 1 35
Error Error GECIT IT Error GECIT Error
/, *, % /, *, % /, *, % /, *, % /, *, % Only / /, *, %
1 1 18 1 2 2 2
Error 0 400 Error 400 0 Error
Ray Boyce Dennis Ritchie Dennis Ritchie Ray Boyce Dennis Ritchie Dennis Ritchie Dennis Ritchie
tokens keywords identifiers keywords identifiers reserved keyworeserved keywo
keywords identifier keywords data types keywords identifier identifier
All of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operatoBitwise operatoBitwise operatoBitwise operatoLogical operato Logical operato Logical operato
-128 128 Garbage Value 128 128 Garbage Value Garbage Value
Temperature in Compiler Error Temperature in Temperature in Compiler Error Temperature in Temperature in
int double int int int int int
/* // // // // // //
16 20 0 12 20 16 0
Arithmetic operLogical operato Arithmetic operArithmetic operEquality operat Arithmetic operArithmetic oper
+ + || || || || ||
False False True False False False True
2,1 2,4 4,2 2,1 2,1 2,8 2,4
24 3 3 24 23 24 3
I and II I and III I and II II and III II and IV I and III II and IV
Either 12 or 20 Either 12 or 20 4 4 12 Either 12 or 20 20
a = 4, c = 6 a = 4, c = 6 a = 3, c = 8 a = 4, c = 6 a = 4, c = 6 a = 4, c = 8 a = 3, c = 8
64 8 32 4 8 64 32
Depends on theReal number Depends on theDepends on theReal number None of the ab Depends on the
a = 14 a = 14.867 compiler error. a = 14.867 a = 14 a = 14 a = 14.867
8 8 8.0 8 8.0 7 8
Ternary Operat Ternary Operat Ternary Operat Ternary Operat If-Else OperatorTernary Operat If-Else Operator
(y – (x/y) * y) (x – (x/y) * y) (y – (x/y) * y) (y – (x/y)) (y – (x/y) * y) (y – (x/y)) (y – (x/y))
0 0 0 0 /= %= +=
-2 -2 35 38 38 35 -2
1 0 Error Error 0 0 Error
0 -5 Error Error 1 Error 1
-9 10 -10 6 -9 -10 -9
0 10 10 1 1 0 1
6 0 14 14 6 8 0
Logical OperatoIncrement/DecrLogical OperatoLogical OperatoIncrement/DecrIncrement/DecrSpecial Operato
-2 3 3 0 2 0 3
122 122 1 -9 122 -9 -1
10,11 10,11 10,11 11,10 10,11 11,10 11,10
1 Compile time er1 Compile time er4 1 2
4 10 4 10 4 8 8
0 0 0 40 0 0 40
1 35 1 35 31 1 20
Error GEC GECIT GEC GECIT Error Error
/, *, % +, - /, *, % +, - /, *, % Only * and / /, *, %
19 19 18 18 1 18 1
Error Error 400 0 400 Error 0
Dennis Ritchie Dennis Ritchie Dennis Ritchie Bjarne Stroustr Dennis Ritchie Ray Boyce Dennis Ritchie
tokens identifiers identifiers tokens identifiers keywords reserved keywo
keywords data types data types data types constant data types data types
All of the aboveAll of the aboveAll of the aboveOctal integer c All of the aboveHexadecimal in All of the above
Logical operato Bitwise operatoBitwise operatoBitwise operatoLogical operato Bitwise operatoLogical operato
Garbage Value -128 Garbage Value 0 128 Garbage Value 128
Temperature in Temperature in Temperature in Temperature in Compiler Error Temperature in Compiler Error
double int int double double int int
// // // ; // /* //
16 0 16 0 16 16
Arithmetic operators Arithmetic operators Arithmetic operEquality operat Relational oper
++ || + ++ %
False False False True False False False
4,2 2,4 2,4 2,1 2,1 4,2
24 23 24 3 3 24
I and II II and IV II and III II and IV II and III I and III II and IV
12 12 4 12 12 20
b = 3, c = 6 a = 3, c = 8 a = 4, c = 6 a = 3, c = 8 a = 4, c = 6 a = 4, c = 6
64 4 64 64 32 64 4
Depends on the numbers used iReal number Depends on theInteger Integer
a = 14 a = 14 a = 14.867 a = 14 a = 14 a = 14.867
8.0 8 8 7 8 8
Ternary Operator Binary Operato Ternary Operat Binary Operato Ternary Operat Ternary Operat
(x – (x/y) * y) (y – (x/y) * y) (x – (x/y)) (y – (x/y)) (x – (x/y) * y) (y – (x/y) * y)
0 0 += 0 %= %=
-2 -2 35 35 34 34
10 0 1 10 0 1
1 1 Error 0 Error
-9 -10 -9 -9 6 6
10 0 0 0 1 10
14 0 0 14 6 0 6
Increment/DecrSpecial OperatoLogical OperatoBitwise OperatoIncrement/DecrBitwise OperatoBitwise Operato
-2 3 -2 -2 2 0
122 1 -9 -9 1 122 -9
11,10 11,11 10,11 10,11 11,11 10,11
1 Compile time er3 1 1 1
4 8 4 8 8 4 8
40 80 0 20 0 40 40
1 1 1 1 1 1
IT Error Error GEC IT GEC Error
Only * and / /, *, % Only * and / /, *, % /, *, % /, *, % /, *, %
2 18 1 18 19 18
400 1 400 0 1
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie
identifiers identifiers identifiers tokens keywords keywords reserved keywords
keywords keywords data types keywords data types keywords
All of the aboveAll of the aboveDecimal integer constant All of the aboveDecimal integerAll of the above
Bitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operatoBitwise operato
Garbage Value 128 Garbage Value Garbage Value Garbage Value Garbage Value 128
Temperature in Temperature in Compiler Error Temperature in Temperature in Temperature in Compiler Error
int double int int float char
/* /* /* // // // //
16 16 16 12 20 20 16
Equality operat Arithmetic operArithmetic operArithmetic operLogical operato Logical operato Arithmetic oper
|| + || % ||
False True True True True True
2,8 4,2 2,1 4,2 4,2 2,8 2,8
24 24 4 4 24 24
II and IV I and III II and IV I and II II and IV
12 Either 12 or 20 Either 12 or 20 12 Either 12 or 20 Either 12 or 20
a = 4, c = 6 a = 4, c = 8 b = 3, c = 6 a = 3, c = 8 a = 3, c = 8
32 4 32 32 32
None of the ab Real number Real number Integer Real number Depends on theInteger
a = 14 a = 14.867 a = 14 a = 14 compiler error. compiler error.
7 8.0 8.0 8.0 7
Ternary Operator Ternary Operat Comparison OpeIf-Else OperatorTernary Operat Ternary Operator
(y – (x/y) * y) (x – (x/y) * y) (x – (x/y)) (y – (x/y) * y) (y – (x/y) * y) (x – (x/y) * y)
+= 0 0 %=
38 38 35 35 34 34
0 Error 0 0 Error 10 Error
Error -5 Error Error -5
10 -9 -10 -9 10 -9
0 12 10 1 1
0 14 8 0 14 0
Logical OperatoIncrement/Decrement OperatoIncrement/DecrLogical OperatoLogical Operators
3 0 0 -2
1 122 122 122 1
10,11 11,11 10,10 11,10 10,11 10,11
Compile time error 1 Compile time er4 Compile time er
8 8 8 10 8 10
40 0 20 40
35 1 20 20 20
GECIT GECIT GECIT GECIT
/, *, % /, *, % /, *, % Only / Only * and / /, *, % /, *, %
1 18 19 18 18 19
Error Error Error 0 1
Dennis Ritchie James Gosling Dennis Ritchie Dennis Ritchie
erved keywords reserved keywords identifiers reserved keyworeserved keywotokens
data types data types constant data types
All of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operator Additional oper Bitwise operatoBitwise operator
0 -128 0 -128 0 0
Temperature in Temperature in Temperature in Temperature in Temperature in Temperature in
int int int int int int int
// // // // // //
16 12 16 16 20 20
Arithmetic operArithmetic operArithmetic operators Logical operato Arithmetic operEquality operat
++ % +
False True False False True True
4,2 2,4 4,2 2,4
24 3 24 4 24
I and II II and IV I and II II and III I and II II and IV
Either 12 or 20 12 20 12 Either 12 or 20 Either 12 or 20
a = 4, c = 8 b = 3, c = 6 a = 4, c = 8 a = 4, c = 6
8 8 4 4 8 64
Real number Real number Integer Real number Depends on the
compiler error. a = 14 compiler error. a = 14.867 a = 14
8 8 7 8.0 8.0 7
nary Operator Binary Operator Ternary Operat Binary Operato If-Else Operator
(y – (x/y) * y) (x – (x/y)) (x – (x/y) * y) (x – (x/y)) (x – (x/y))
%= %= 0 0 0 /= 0
34 35 34 34 35 35
1 1 1 1 Error Error 1
1 Error 1 -5 10
-10 -10 -9 -9 -9
1 12 1 0 1 0 0
14 0 8 14 0
Logical OperatoBitwise OperatoBitwise OperatoLogical OperatoLogical OperatoIncrement/DecrBitwise Operato
-2 -2 -2 2
-9 -9 -9 122
10,11 10,11 10,11 10,10 11,11
4 4 3 1
8 8 8 8 8 10
0 40 0
1 1 31 35 35
GEC GEC GECIT GEC IT GECIT IT
Only * and / /, *, % Only * and / /, *, % +, -
19 18 2 18 18
1 400 Error
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Ray Boyce
identifiers identifiers identifiers reserved keywo
data types keywords keywords data types data types
All of the aboveAll of the aboveAll of the above All of the aboveDecimal integerAll of the above
Logical operato Bitwise operatoAdditional oper Bitwise operatoBitwise operatoLogical operato Bitwise operato
-128 -128 Garbage Value
Temperature in Temperature in Temperature in Fahrenheit is 0 Temperature in Temperature in Temperature in
int int int char float
// // // ; //
20 20 16 16 16 16 0
Arithmetic operArithmetic operLogical operato Logical operato Logical operato Logical operato Arithmetic oper
|| % || + || || ||
False False False False False True False
2,8 2,8 2,8 2,1 2,8 4,2 2,1
24 24 3 24 24 3 4
II and IV II and IV II and IV I and III I and II I and II I and II
Either 12 or 20 Either 12 or 20 12 4 12 12 4
a = 3, c = 8 a = 3, c = 8 a = 4, c = 6 a = 4, c = 6 a = 4, c = 6 b = 3, c = 6 b = 3, c = 6
32 32 64 64 64 64 8
Integer Integer Integer Integer Integer Real number Integer
a = 10 a = 14 compiler error. a = 14 a = 14 compiler error. a = 10
7 7 8 8.0 8.0 8 8.0
If-Else OperatorBinary Operato Comparison OpeTernary Operat Comparison OpeBinary Operato Comparison Ope
(x – (x/y) * y) (y – (x/y) * y) (x – (x/y)) (y – (x/y) * y) (y – (x/y)) (y – (x/y)) (x – (x/y) * y)
/= %= /= 0 %= %= /=
35 38 -2 38 38 34 35
1 1 0 1 Error 0 10
1 Error -5 Error 0 Error 1
6 -10 -9 -9 -9 -9 -10
10 10 0 0 0 0 10
14 6 14 14 14 14 0
Increment/DecrIncrement/DecrSpecial OperatoSpecial OperatoBitwise OperatoBitwise OperatoLogical Operato
3 3 0 0 -2 2 3
122 122 -1 -1 122 122 -1
11,11 11,11 11,11 11,10 10,11 10,11 10,11
1 4 1 1 1 Compile time erCompile time er
8 8 4 4 6 10 8
0 0 0 0 0 0 0
1 20 35 35 1 35 35
Error GECIT Error GECIT GEC Error IT
+, - /, *, % +, - /, *, % /, *, % Only / Only * and /
18 1 19 1 18 1 19
400 Error 1 Error 0 Error 400
Ray Boyce Dennis Ritchie Dennis Ritchie Dennis Ritchie Bjarne Stroustr James Gosling James Gosling
reserved keyworeserved keyworeserved keywokeywords tokens reserved keywokeywords
data types keywords data types data types keywords keywords keywords
All of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the aboveAll of the above
Bitwise operatoLogical operato Bitwise operatoAdditional oper Bitwise operatoLogical operato Additional oper
128 128 128 128 128 128 Garbage Value
Compiler Error Temperature in Temperature in Compiler Error Compiler Error Compiler Error Compiler Error
float double int int double double int
// // // /* // /* /*
20 12 12 20 12 20
Logical operators Arithmetic operRelational oper Equality operat Arithmetic operArithmetic oper
+ % || % % ||
True True True True False
2,8 4,2 2,1 4,2
3 24 23 24 23 3 24
I and II I and III I and II II and IV II and IV II and IV
12 12 Either 12 or 20 20 Either 12 or 20 12
a = 4, c = 6 a = 4, c = 6 a = 4, c = 8 a = 4, c = 6 a = 4, c = 6
64 4 4 32
Integer Real number Real number Real number None of the ab
a = 14 a = 10 a = 14 compiler error. a = 14
8 7 8.0 8.0 8.0 7
nary Operator Ternary Operat Ternary Operat Binary Operato Binary Operator Ternary Operat
(x – (x/y) * y) (y – (x/y)) (y – (x/y)) (x – (x/y)) (x – (x/y) * y)
+= 0 /= 0 %= 0
-2 -2 35 34 34
0 1 Error 10 1 Error
0 10 Error 10 Error
-9 -9 6 10 -9 10
10 0 0 1 1 10
14 14 8 0 14 6
Increment/DecrLogical OperatoBitwise OperatoIncrement/DecrLogical OperatoBitwise Operators
-2 3 3 -2 -2 2
122 122 122 122 122 -1
11,10 10,11 10,10 11,10 10,11
Compile time error 4 4 1 4 Compile time error
10 6 8
0 40 40 0
1 35 20 35 31 31
GEC GECIT GEC GECIT
/, *, % /, *, % +, - /, *, % +, -
19 1 18 2 19
Error Error Error 0 1 1 0
Dennis Ritchie Dennis Ritchie Bjarne Stroustr James Gosling Dennis Ritchie
reserved keywoidentifiers identifiers tokens reserved keywoidentifiers identifiers
keywords keywords keywords constant keywords
All of the aboveAll of the aboveHexadecimal in All of the aboveHexadecimal in All of the above
Bitwise operatoBitwise operatoLogical operato Logical operato Additional opertors Bitwise operator
-128 128 128 128 -128
Temperature in Fahrenheit is 4 Compiler Error Temperature in Temperature in Fahrenheit is 3 Temperature in
int char float int
; : // // //
0 20 12 16 16 16 20
Logical operato Relational oper Arithmetic operRelational operators Relational oper Arithmetic operators
|| + ++ ++ ++ ++
True False False True False True
2,1 4,2 4,2 4,2 2,8 2,4
24 24 3 3 3 3 3
II and IV I and II I and II I and II II and III II and IV II and III
12 Either 12 or 20 Either 12 or 20 12 4 12 20
a = 3, c = 8 a = 4, c = 6 a = 3, c = 8 a = 4, c = 6 a = 4, c = 8 a = 3, c = 8 a = 4, c = 8
64 8 8 8 32 64
Integer Depends on theDepends on theDepends on the numbers used iInteger Depends on the
a = 14.867 a = 14.867 a = 14.867 a = 14.867 a = 14.867 a = 14
8.0 8 7 8 7 8
Binary Operato Comparison OpeComparison OpeTernary Operat Ternary Operat Ternary Operat Ternary Operat
(x – (x/y)) (x – (x/y) * y) (y – (x/y) * y) (x – (x/y)) (x – (x/y)) (x – (x/y))
0 0 += %= %= %=
35 38 35 -2 -2 38 -2
0 Error 10 0 Error Error 0
Error -5 Error 0 1 Error
10 -9 10 -9 -9 10 -9
10 1 12 12 0 1 10
6 8 8 0 8 14 8
Special OperatoIncrement/DecrIncrement/DecrBitwise OperatoIncrement/DecrIncrement/Decr
-2 0 -2 3 2 2 3
1 122 -9 122 1 122
11,11 10,11 10,11 10,11 10,11 10,11 10,10
mpile time error 4 Compile time erCompile time error 4 1
4 4 8 10 10 10
20 20 0 0 80 20
20 1 20 1 31 1
GEC GECIT GECIT GECIT GEC GECIT GECIT
/, *, % /, *, % /, *, % /, *, % Only * and / /, *, % +, -
18 2 1 18 1 19
0 Error 400 0 Error 1
Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Dennis Ritchie Bjarne Stroustr Dennis Ritchie
identifiers reserved keyworeserved keywoidentifiers keywords keywords identifiers
identifier constant keywords keywords data types identifier
All of the aboveAll of the aboveAll of the aboveDecimal integerAll of the aboveAll of the above
wise operator Bitwise operatoBitwise operatoBitwise operatoBitwise operatoNone of the ab Logical operator
Garbage Value 0 0 128 Garbage Value Garbage Value 0
Temperature in Compiler Error Temperature in Compiler Error Temperature in Temperature in Temperature in Fahrenheit is 3
char int float double int int double
// /* // /* :
12 12 12 20 20 12 12
hmetic operators Equality operat Logical operato Logical operators Logical operato
|| + + || || ||
True True True False True False
2,8 4,2 2,8 2,4 2,4
23 3 24 23 24 24 24
II and IV I and II I and III II and III
20 12 12 Either 12 or 20 12
b = 3, c = 6 b = 3, c = 6 a = 3, c = 8 a = 4, c = 6 b = 3, c = 6
4 4 4 4 32 64 4
Depends on theDepends on theNone of the ab Real number Depends on the numbers used iDepends on the
a = 14 compiler error. a = 10 compiler error. compiler error. a = 14 compiler error.
8 7 7 8 8.0 8.0
Binary Operato Comparison OpeTernary Operat Ternary Operator Ternary Operat If-Else Operator
(x – (x/y) * y) (y – (x/y)) (x – (x/y)) (x – (x/y) * y) (x – (x/y) * y) (x – (x/y))
%= 0 0 %= 0 +=
-2 34 34 34 35 38
Error 1 10 1 1 0
Error Error 0 0 10
-9 -10 -9 -9 -10
0 10 10 1 1 10
14 14 0 0 0 14
Bitwise Operators Bitwise OperatoBitwise Operators Logical OperatoSpecial Operato
-2 0 3 -2 2 -2
1 122 1 1 122
11,10 11,10 10,11 10,11 11,10
Compile time erCompile time erCompile time er1 Compile time error 4
4 4 8 6 4
0 20 20 40 0 80
1 35 20 1 35 35
GEC IT Error IT
+, - /, *, % /, *, % /, *, % /, *, %
18 2 19 2 2 19
400 0 1 400 400
Dennis Ritchie James Gosling Bjarne Stroustr Dennis Ritchie Bjarne Stroustr
identifiers identifiers keywords reserved keywoidentifiers keywords tokens
data types data types keywords keywords keywords constant
Decimal integerHexadecimal in Decimal integerAll of the aboveAll of the aboveAll of the aboveOctal integer c
cal operator Bitwise operatoBitwise operatoLogical operator Logical operato
128 0 128 Garbage Value 128 128 0
mperature in Fahrenheit is 3 Temperature in Temperature in Temperature in Temperature in Temperature in Compiler Error
double int int int int
// : ; : : //
12 12 12 16 16 20
Equality operat Relational operators Relational oper Logical operato Logical operato Arithmetic operators
% % + + || % +
True True True True True True
2,4 2,4 2,1 2,4 2,1
3 23 24 3 3 24
II and IV I and II I and II II and IV I and II I and II II and III
12 4 Either 12 or 20 4 Either 12 or 20 12
b = 3, c = 6 a = 4, c = 6 b = 3, c = 6 a = 3, c = 8 a = 4, c = 6 a = 3, c = 8
32 64 32 64 32
Integer Integer Real number None of the ab Real number None of the above
a = 14 a = 10 a = 14 a = 14.867 compiler error. compiler error.
8 7 7 7 8.0 7
Ternary Operat If-Else OperatorIf-Else OperatorTernary Operat Binary Operato Ternary Operat Ternary Operator
(y – (x/y) * y) (x – (x/y) * y) (x – (x/y)) (x – (x/y) * y) (y – (x/y) * y)
0 += /= /= %=
35 35 38 35 34
1 10 Error Error Error 1 Error
0 0 Error 0 0 0 Error
10 10 -9 6 -9 -9
12 10 0 1 0 12
0 6 8 14
Increment/DecrBitwise Operators Special Operators Special Operators
3 -2 3 -2 2 3 -2
-1 122 122 -1 1 1
10,10 10,11 10,11 10,10 11,10
3 Compile time error 1 3 Compile time er1
10 8 8 10 8 8
80 80 40 20 80 0
20 1 1 1 31 1
IT GECIT GEC Error Error Error
/, *, % /, *, % Only * and / /, *, % /, *, %
1 18 18 2 18
Error 400 0 Error
Bjarne Stroustr Bjarne Stroustr Dennis Ritchie Dennis Ritchie Dennis Ritchie
keywords keywords identifiers tokens keywords
constant keywords data types keywords keywords keywords identifier
Decimal integerOctal integer c Hexadecimal integer constant Hexadecimal in All of the aboveHexadecimal integer constant
None of the ab Logical operato Bitwise operatoBitwise operatoLogical operator Additional opertors
128 0 Garbage Value 128 Garbage Value 128 Garbage Value
Temperature in Temperature in Temperature in Compiler Error Temperature in Temperature in Compiler Error
double int int double int int
/* // // //
ne of the above
mpiler error.
nary Operator
cial Operators
adecimal integer constant
itional opertors
Rank First Name Last Name Attempt # Accuracy Score
43 0 0 0 0
43 0 0 0 0
39 0 0 4 0
41 0 0 2 0
39 0 0 4 0
37 0 0 6 0
38 0 0 5 0
37 0 0 6 0
38 0 0 5 0
37 0 0 6 0
35 0 0 8 0
31 0 0 12 0
32 0 0 6 0
32 0 0 7 0
31 0 0 12 0
32 0 0 11 0
32 0 0 11 0
32 0 0 11 0
30 0 0 13 0
31 0 0 12 0
31 0 0 12 0
31 0 0 12 0
30 0 0 6 0
25 0 0 2 0
31 0 0 12 0
30 0 0 12 0
30 0 0 13 0
30 0 0 13 0
27 0 0 16 0
29 0 0 9 0
29 0 0 14 0
28 0 0 15 0
29 0 0 9 0
29 0 0 14 0
29 0 0 14 0
29 0 0 14 0
29 0 0 14 0
27 0 0 16 0
29 0 0 14 0
29 0 0 14 0
27 0 0 8 0
28 0 0 15 0
28 0 0 5 0
27 0 0 16 0
27 0 0 16 0
27 0 0 16 0
27 0 0 13 0
26 0 0 9 0
26 0 0 17 0
26 0 0 17 0
26 0 0 17 0
26 0 0 17 0
26 0 0 17 0
26 0 0 17 0
25 0 0 18 0
25 0 0 18 0
20 0 0 5 0
25 0 0 18 0
25 0 0 14 0
25 0 0 18 0
25 0 0 18 0
25 0 0 18 0
25 0 0 18 0
25 0 0 18 0
25 0 0 18 0
24 0 0 11 0
24 0 0 19 0
24 0 0 19 0
24 0 0 19 0
24 0 0 19 0
24 0 0 19 0
24 0 0 19 0
23 0 0 13 0
23 0 0 18 0
23 0 0 20 0
23 0 0 20 0
23 0 0 17 0
23 0 0 20 0
23 0 0 20 0
23 0 0 16 0
22 0 0 7 0
22 0 0 21 0
22 0 0 9 0
22 0 0 21 0
22 0 0 21 0
22 0 0 21 0
22 0 0 21 0
22 0 0 19 0
22 0 0 21 0
22 0 0 21 0
22 0 0 21 0
22 0 0 19 0
21 0 0 22 0
21 0 0 22 0
21 0 0 22 0
21 0 0 22 0
21 0 0 22 0
21 0 0 22 0
21 0 0 22 0
21 0 0 22 0
21 0 0 22 0
21 0 0 22 0
20 0 0 19 0
20 0 0 23 0
20 0 0 23 0
20 0 0 21 0
20 0 0 19 0
20 0 0 23 0
20 0 0 23 0
20 0 0 23 0
20 0 0 23 0
20 0 0 23 0
20 0 0 23 0
20 0 0 23 0
20 0 0 23 0
19 0 0 9 0
19 0 0 9 0
19 0 0 24 0
19 0 0 17 0
19 0 0 24 0
19 0 0 24 0
18 0 0 21 0
19 0 0 17 0
19 0 0 24 0
19 0 0 24 0
19 0 0 24 0
19 0 0 24 0
19 0 0 24 0
19 0 0 21 0
19 0 0 24 0
19 0 0 24 0
19 0 0 24 0
19 0 0 24 0
19 0 0 24 0
19 0 0 24 0
19 0 0 20 0
19 0 0 24 0
19 0 0 16 0
18 0 0 11 0
18 0 0 22 0
18 0 0 25 0
18 0 0 25 0
18 0 0 25 0
18 0 0 25 0
18 0 0 25 0
18 0 0 25 0
18 0 0 22 0
18 0 0 16 0
18 0 0 10 0
17 0 0 5 0
17 0 0 26 0
17 0 0 26 0
17 0 0 26 0
17 0 0 26 0
17 0 0 26 0
17 0 0 26 0
17 0 0 26 0
17 0 0 26 0
17 0 0 26 0
17 0 0 26 0
17 0 0 20 0
17 0 0 26 0
17 0 0 26 0
16 0 0 20 0
16 0 0 15 0
16 0 0 27 0
16 0 0 27 0
16 0 0 9 0
16 0 0 27 0
16 0 0 27 0
16 0 0 27 0
16 0 0 27 0
16 0 0 27 0
16 0 0 27 0
16 0 0 27 0
16 0 0 27 0
16 0 0 27 0
16 0 0 27 0
15 0 0 28 0
15 0 0 28 0
15 0 0 28 0
15 0 0 28 0
15 0 0 28 0
15 0 0 9 0
15 0 0 28 0
15 0 0 14 0
15 0 0 28 0
15 0 0 28 0
15 0 0 28 0
15 0 0 15 0
14 0 0 17 0
13 0 0 2 0
14 0 0 29 0
14 0 0 29 0
14 0 0 29 0
14 0 0 19 0
14 0 0 14 0
14 0 0 10 0
14 0 0 20 0
13 0 0 14 0
13 0 0 12 0
13 0 0 30 0
13 0 0 30 0
13 0 0 30 0
13 0 0 30 0
13 0 0 30 0
13 0 0 30 0
13 0 0 30 0
13 0 0 30 0
13 0 0 30 0
13 0 0 30 0
13 0 0 30 0
13 0 0 19 0
12 0 0 5 0
12 0 0 31 0
12 0 0 31 0
12 0 0 31 0
12 0 0 20 0
12 0 0 15 0
12 0 0 28 0
12 0 0 31 0
12 0 0 31 0
12 0 0 17 0
12 0 0 6 0
12 0 0 20 0
12 0 0 31 0
12 0 0 31 0
12 0 0 31 0
12 0 0 17 0
12 0 0 31 0
12 0 0 31 0
11 0 0 16 0
11 0 0 29 0
11 0 0 32 0
11 0 0 32 0
11 0 0 14 0
10 0 0 13 0
10 0 0 33 0
10 0 0 33 0
10 0 0 33 0
10 0 0 19 0
10 0 0 17 0
10 0 0 33 0
10 0 0 16 0
10 0 0 28 0
10 0 0 22 0
9 0 0 7 0
9 0 0 34 0
9 0 0 15 0
9 0 0 34 0
8 0 0 13 0
8 0 0 5 0
8 0 0 9 0
8 0 0 10 0
8 0 0 5 0
8 0 0 35 0
7 0 0 6 0
7 0 0 9 0
7 0 0 10 0
7 0 0 12 0
7 0 0 18 0
6 0 0 12 0
6 0 0 15 0
6 0 0 15 0
5 0 0 9 0
5 0 0 18 0
5 0 0 9 0
5 0 0 13 0
4 0 0 10 0
4 0 0 4 0
4 0 0 9 0
4 0 0 10 0
4 0 0 9 0
4 0 0 15 0
4 0 0 8 0
4 0 0 4 0
4 0 0 9 0
4 0 0 14 0
4 0 0 11 0
3 0 0 3 0
3 0 0 1 0
3 0 0 4 0
3 0 0 7 0
3 0 0 7 0
3 0 0 12 0
3 0 0 10 0
2 0 0 1 0
2 0 0 14 0
2 0 0 3 0
2 0 0 7 0
2 0 0 5 0
2 0 0 5 0
2 0 0 12 0
2 0 0 9 0
2 0 0 4 0
2 0 0 8 0
1 0 0 2 0
1 0 0 3 0
1 0 0 2 0
1 0 0 2 0
1 0 0 4 0
1 0 0 5 0
1 0 0 6 0
1 0 0 5 0
1 0 0 1 0
1 0 0 6 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
1 0 0 0 0
0 0 0 1 0
0 0 0 1 0
0 0 0 1 0
0 0 0 4 0
0 0 0 2 0
0 0 0 1 0
0 0 0 3 0
0 0 0 1 0
0 0 0 1 0
1 0 0 1 0
0 0 0 1 0
0 0 0 2 0
0 0 0 3 0
0 0 0 4 0
0 0 0 4 0
0 0 0 5 0
Unattempted Total Time Taken Started At Info