find a number whether it is even or odd without using any
control structures and relational operators?
Answer Posted / guest
#include<stdio.h>
#include<conio.h>
void main()
{
int x;
if(x%2==0)
printf("even");
else
printf("odd");
getch();
}
| Is This Answer Correct ? | 4 Yes | 25 No |
Post New Answer View All Answers
What are the 4 data types?
Is exit(status) truly equivalent to returning the same status from main?
What is malloc return c?
Why do we use c for the speed of light?
How is actual parameter different from the formal parameter?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
swap 2 numbers without using third variable?
Why static variable is used in c?
Where are c variables stored in memory?
Disadvantages of C language.
Difference between Shallow copy and Deep copy?
How can you avoid including a header more than once?
How do you sort filenames in a directory?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
What is the main difference between calloc () and malloc ()?