find a number whether it is even or odd without using any
control structures and relational operators?
Answer Posted / vinocit
#include<stdio.h>
int main()
{
int n=10000;
char *s[2]={"Even","Odd"};
printf("%s",s[n&1]);
return 0;
}
Is This Answer Correct ? | 47 Yes | 11 No |
Post New Answer View All Answers
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
List the difference between a While & Do While loops?
How many types of functions are there in c?
What is the best organizational structure?
When is the “void” keyword used in a function?
What are near, far and huge pointers?
What is difference between structure and union in c programming?
What is c mainly used for?
What is the use of ?: Operator?
Explain setjmp()?
What math functions are available for integers? For floating point?
How can I delete a file?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
Which is the best website to learn c programming?