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
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
What are the 4 types of organizational structures?
What oops means?
Explain what are multidimensional arrays?
What are conditional operators in C?
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
What is the difference between āgā and āgā in C?
What is use of null pointer in c?
What is derived datatype in c?
Are the variables argc and argv are local to main?
what are bit fields in c?
how can I convert a string to a number?
What is a double c?
Explain what math functions are available for integers? For floating point?
Why isnt any of this standardized in c?