Write a program to find the given number is odd or even
without using any loops(if,for,do,while)
Answer Posted / taesung kim
(num & 1) ? (odd) : (even);
| Is This Answer Correct ? | 8 Yes | 11 No |
Post New Answer View All Answers
What is the difference between text and binary i/o?
What is printf () in c?
writ a program to compare using strcmp VIVA and viva with its output.
Explain #pragma statements.
Where static variables are stored in c?
write a c program to find the sum of five entered numbers using an array named number
What's the total generic pointer type?
Using which language Test cases are added in .ptu file of RTRT unit testing???
What does it mean when a pointer is used in an if statement?
What is line in c preprocessor?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
how do you execute a c program in unix.
What are the different types of constants?
where are auto variables stored? What are the characteristics of an auto variable?
List some of the static data structures in C?