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
How would you rename a function in C?
Define VARIABLE?
Is main an identifier in c?
Why n++ execute faster than n+1 ?
What is difference between && and & in c?
What is exit() function?
What is a const pointer in c?
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?
Is that possible to add pointers to each other?
What are the types of data types and explain?
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
Are pointers integers in c?
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)
What is getch c?
What functions are used in dynamic memory allocation in c?