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


Please Help Members By Posting Answers For Below Questions

How many types of errors are there in c language? Explain

734


Explain main function in c?

823


Is r written in c?

878


What is your stream meaning?

827


Explain what will the preprocessor do for a program?

779






What is the difference between malloc() and calloc() function in c language?

800


What is the concatenation operator?

787


What are global variables?

845


What happens if a header file is included twice?

763


What are the two types of structure?

783


Explain what is the difference between null and nul?

861


Write a program to print all permutations of a given string.

909


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1427


What are pointers?

831


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.

1685