To find whether a number is even or odd without using any
conditional operator??
Answer Posted / rudrakshala leela phani kumar
int main()
{
int a[2][5]={"Even","Odd"};
int n;
printf("Enter Integet No:");
scanf("%d",&n);
printf("\nResult:%d",a[n%2]);
}
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is the difference between far and near in c?
Explain what is wrong with this statement? Myname = ?robin?;
What is the use of ?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
Explain the array representation of a binary tree in C.
Why static variable is used in c?
How do you determine whether to use a stream function or a low-level function?
What is the purpose of sprintf?
What does stand for?
What is #include stdio h?
Explain what header files do I need in order to define the standard library functions I use?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
What are different types of operators?
What is the purpose of realloc()?
What is wrong with this code?