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 |
why we use pointer in c
biggest of two no's with out using if condition statement
If I have a char * variable pointing to the name of a function ..
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
Which of the Following will define a type NODE that is a node in a Linked list? A)struct node {NODE*next;int x;};type def struct node NODE; B)typedef struct NODE {struct NODE *next;int x;}; C)typedef struct NODE {NODE *next;int x;}; D)typedef struct {NODE *next;int x;}NODE;
What is the acronym for ansi?
write a function to swap an array a[5] elements like a[0] as a[5],a[1] as a[4],....a[5] as a[0].without using more than one loop and use one array not to use temp array?
Write a c program using for loop to print typical pattern if number of rows is entered by keyboard. ABCBA AB BA A A
what is the difference between static variable and register variable?
write a program to print the all 4digits numbers & whose squares must me even numbers?
What is the purpose of the fflush() function in C?
How can I get random integers in a certain range?