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
Write a program on swapping (100, 50)
What are the salient features of c languages?
What are c identifiers?
What is a pointer value and address in c?
Is c call by value?
Can you please explain the difference between syntax vs logical error?
What is string in c language?
What is difference between Structure and Unions?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
Write a program to reverse a given number in c?
What is the heap?
What is stack in c?
What is wild pointer in c with example?
write a program to display all prime numbers
Explain the Difference between the New and Malloc keyword.