Write a C program to check a number even or odd, without using
any relational, arithmetic operator and any loops.



Write a C program to check a number even or odd, without using any relational, arithmetic operator..

Answer / geniuineprogrammer

u can use bitwise operator
if (no & 1) {
its odd
}

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More C Interview Questions

Explain do array subscripts always start with zero?

0 Answers  


What is the difference between union and structure in c?

0 Answers  


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

0 Answers   Aspiring Minds,


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

0 Answers  


how to use enum datatype?Please explain me?

3 Answers   Excel,






write a programe to find the factorial of given number using recursion

3 Answers  


What is #include in c?

0 Answers  


what are two categories of clint-server application development ?

1 Answers  


marge linklist

0 Answers   HCL,


Who developed c language?

0 Answers  


1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

3 Answers  


What is #line used for?

0 Answers  


Categories