find a number whether it is even or odd without using any
control structures and relational operators?
Answer Posted / vignesh1988i
THE LAST two answers posted by two folks are correct but the
declarations have been made wrong...... we cant make use of
1D array here , if so only 'e' or 'o' only will get
printed.... but that is not our aim... so correct
declaration is using a 2D array.....
char a[][6]={{"even"},{"odd"}};
and also it is not the must to make use of array of pointers
concept...........
thank u
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
How do I get a null pointer in my programs?
Is it possible to execute code even after the program exits the main() function?
Is fortran still used today?
What is struct node in c?
What is meant by realloc()?
What is signed and unsigned?
Explain built-in function?
What are conditional operators in C?
What does the error message "DGROUP exceeds 64K" mean?
Describe the header file and its usage in c programming?
What are local static variables?
Are the outer parentheses in return statements really optional?
Which header file is essential for using strcmp function?
How can you invoke another program from within a C program?
What is function prototype in c with example?