find a number whether it is even or odd without using any
control structures and relational operators?

Answer Posted / vinothkumar.r

But its much efficient just to find whether the last bit is
0 or 1

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you rename a function in C?

612


Define VARIABLE?

684


Is main an identifier in c?

591


Why n++ execute faster than n+1 ?

1826


What is difference between && and & in c?

572






What is exit() function?

556


What is a const pointer in c?

658


A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?

1506


Is that possible to add pointers to each other?

888


What are the types of data types and explain?

662


we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

628


Are pointers integers in c?

602


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1853


What is getch c?

844


What functions are used in dynamic memory allocation in c?

585