Write a program to find given number is even or odd without
using any control statement.
Answer Posted / saneemask
main()
{
{
char a[][5]= {"Even","Odd"};
int n;
printf("Enter any no.: ");
scanf("%d",&n);
printf("%s",a[n%2]);
getch();
}
{
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between null pointer and void pointer.
Differentiate between full, complete & perfect binary trees.
What is the use of pragma in embedded c?
What is the advantage of an array over individual variables?
Differentiate Source Codes from Object Codes
Why do we use int main instead of void main in c?
Is it cc or c in a letter?
What is methods in c?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
What does the function toupper() do?
Explain what is page thrashing?
What is the code in while loop that returns the output of given code?
C program to find all possible outcomes of a dice?
What are pointers?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...