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 is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Why shouldn’t I start variable names with underscores?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
Can I initialize unions?
What is break in c?
What is a example of a variable?
How many identifiers are there in c?
What functions are in conio h?
Create a simple code fragment that will swap the values of two variables num1 and num2.
What are run-time errors?
Can a pointer be static?
What is a structure and why it is used?
Can a variable be both constant and volatile?
Why can arithmetic operations not be performed on void pointers?
What is malloc() function?