write a c program to print a given number as odd or even
without using loop statements,(no if ,while etc)
Answer Posted / dheerendra
logic
main()
{
int a;
(a%2==0)?printf("even"):printf("odd")
}
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
Is c programming hard?
Write a C program to count the number of email on text
Can an array be an Ivalue?
p*=(++q)++*--p when p=q=1 while(q<=6)
Is fortran still used today?
Is it better to use a macro or a function?
Explain is it better to bitshift a value than to multiply by 2?
Which is better between malloc and calloc?
How can I make it pause before closing the program output window?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
Can you explain the four storage classes in C?
why do some people write if(0 == x) instead of if(x == 0)?
Explain how do you override a defined macro?
What are the main characteristics of c language describe the structure of ac program?
Why cant I open a file by its explicit path?