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


Please Help Members By Posting Answers For Below Questions

What is modeling?

634


What would be an example of a structure analogous to structure c?

568


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

2364


Can you tell me how to check whether a linked list is circular?

753


For what purpose null pointer used?

600






What is %g in c?

606


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

641


What does 4d mean in c?

932


p*=(++q)++*--p when p=q=1 while(q<=6)

1261


How can a program be made to print the name of a source file where an error occurs?

721


Did c have any year 2000 problems?

647


Can you define which header file to include at compile time?

573


What is c language in simple words?

583


Is it valid to address one element beyond the end of an array?

664


What does. int *x[](); means ?

627