find a number whether it is even or odd without using any
control structures and relational operators?
Answer Posted / om
void odd_even_check(int z)
{
(z&1)?printf("\nodd\n"):printf("\neven\n");
}
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
What is #include stdio h?
What is structure and union in c?
hi any body pls give me company name interview conduct "c" language only
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What is the significance of c program algorithms?
What is a nested loop?
Differentiate between a for loop and a while loop? What are it uses?
Write a progarm to find the length of string using switch case?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
Why void is used in c?
What is c definition?
What are the preprocessor categories?
what do u mean by Direct access files? then can u explain about Direct Access Files?
Explain can static variables be declared in a header file?
formula to convert 2500mmh2o into m3/hr