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
Which programming language is best for getting job 2020?
Why is c so popular?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
Disadvantages of C language.
What is the purpose of sprintf() function?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
Can two or more operators such as and be combined in a single line of program code?
Explain the process of converting a Tree into a Binary Tree.
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
Does c have enums?
Do you have any idea how to compare array with pointer in c?
What is methods in c?
What is c preprocessor mean?
What is the difference between declaring a variable and defining a variable?
how many key words availabel in c a) 28 b) 31 c) 32