write a c program to print a given number as odd or even
without using loop statements,(no if ,while etc)

Answer Posted / taesung kim

(number & 1) ? (odd) : (even);

Is This Answer Correct ?    5 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why isnt there a numbered, multi-level break statement to break out

605


What is define c?

587


What is bubble sort in c?

650


What is static memory allocation?

615


How can I read a binary data file properly?

643






Why calloc is better than malloc?

582


What is hungarian notation? Is it worthwhile?

715


What does printf does?

761


What is the size of empty structure in c?

603


what are the facialities provided by you after the selection of the student.

1666


What are dangling pointers in c?

659


What are c identifiers?

639


what are enumerations in C

739


What is variable declaration and definition in c?

510


What is a spanning Tree?

975