Write a program to find the given number is odd or even
without using any loops(if,for,do,while)
Answer Posted / shiv kumar
(num/2==0)? printf("even"):printf("odd");
Is This Answer Correct ? | 20 Yes | 7 No |
Post New Answer View All Answers
How can I do peek and poke in c?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
Explain what is a 'locale'?
Why #include is used in c language?
How can you find the day of the week given the date?
How are 16- and 32-bit numbers stored?
What is a sequential access file?
What is difference between Structure and Unions?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What is structure data type in c?
What does the error 'Null Pointer Assignment' mean and what causes this error?
Do pointers store the address of value or the actual value of a variable?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
What is c value paradox explain?
What is difference between structure and union in c programming?