Write a C program to check a number even or odd, without using
any relational, arithmetic operator and any loops.
Answer / geniuineprogrammer
u can use bitwise operator
if (no & 1) {
its odd
}
| Is This Answer Correct ? | 6 Yes | 1 No |
What is the use of printf() and scanf() functions?
How can you return multiple values from a function?
Tell me what is the purpose of 'register' keyword in c language?
What is const keyword in c?
Differentiate between Macro and ordinary definition.
What is a MAC Address?
Why is c known as a mother language?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }
What is the difference between procedural and functional programming?
What is the difference between malloc() and calloc()?
which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
16 Answers Accenture, Infosys, TCS, Wipro,