Thread
:
C programming
View Single Post
SaswatPadhi
~ Б0ЯИ Τ0 С0δЭ ~
23Sep2009,19:05
OK, we can't use relational, arithmetic, logical operators, but we can use bit-wise and operator.
Code: CPP
if
(
A&
1
)
{
printf
(
"%d is odd
\n
"
, A
)
;
}
else
{
printf
(
"%d is even
\n
"
, A
)
;
}