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 will be the output off the following program? #include<stdio.h> int main() { int a; a=015+0*71+5; printf("%d,a"); return0; }
Is null always equal to 0(zero)?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What are global variables and how do you declare them?
Write a program for the following series: 1*3*5-2*4*6+3*5*7-4*6*8+.................up to nterms
what does data structure mean?
Write a program to know whether the input number is an armstrong number.
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
Explain what is the benefit of using const for declaring constants?
How many parameters should a function have?
What is the output of the program #include<stdio.h> #include<conio.h> void main() {0 int i,j=20; clrscr(); for(i=1;i<3;i++) { printf("%d,",i); continue; printf("%d",j); break; } getch(); }
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above