Write a C program to check a number even or odd, without using
any relational, arithmetic operator and any loops.
Answer / geniuineprogrammer
u can use bitwise operator
if (no & 1) {
its odd
}
Is This Answer Correct ? | 6 Yes | 1 No |
What is period operator in c?
write a program to display reverse of a number using for loop?
A function 'q' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as: A)int (*q(char*)) [] B)int *q(char*) [] C)int(*q)(char*) [] D)None of the Above
What is the difference between exit() and _exit() function?
Why do we use c for the speed of light?
What is the general form of a C program?
What is the method to save data in stack data structure type?
write a function to find whether a string is palindrome or not and how many palindrome this string contain?
Write a pro-gramme to determine whether the number is even or odd?
Write a program in c to replace any vowel in a string with z?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
Can an array be an Ivalue?