C Programming Tricks, Test, Interview Questions
Learn C programming skills, test your c skill. C Interview questions.
Tuesday, December 15, 2009
Ternary Operator
What is the output.
int main()
{
int i=10,j=20;
j = i, j?(i,j)?i:j:j;
printf("%d %d",i,j);
}
Choice:
a)10 10
b)20 20
c)10 11
d)11 10
e)10 20
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
Labels
Arithmetic Operators
(2)
array
(8)
ascii chart
(1)
base conversion
(1)
bitwise operators
(2)
C Functions
(2)
C Strings
(1)
Compilation
(1)
Conditional Statements
(1)
extern
(1)
file
(2)
float
(1)
Identifiers
(1)
Initialization
(1)
Library
(3)
Linked List
(1)
Linker
(1)
loops
(4)
Operators
(6)
Parentheses
(3)
Pointer Arithmetic
(1)
pointers
(7)
Pre-Processor
(3)
Precedence
(7)
printf
(8)
printf formats
(2)
recursion
(3)
Relational Operators
(1)
scanf
(2)
sizeof
(3)
stack
(1)
Statement
(1)
static variables
(2)
strings
(5)
structure
(5)
switch case
(2)
Ternary Operator
(1)
Unary Operators
(2)
Union
(1)
Subscribe in a reader
Subscribe To
Posts
Atom
Posts
All Comments
Atom
All Comments
Blog Archive
►
2010
(23)
►
May
(1)
►
February
(12)
►
January
(10)
▼
2009
(38)
▼
December
(1)
Ternary Operator
►
June
(2)
►
May
(7)
►
April
(7)
►
March
(7)
►
February
(7)
►
January
(7)
►
2008
(33)
►
December
(7)
►
November
(7)
►
October
(7)
►
September
(7)
►
July
(1)
►
June
(1)
►
May
(1)
►
March
(1)
►
January
(1)