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 |
main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What is the difference between fread and fwrite function?
What are .h files and what should I put in them?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
What is the difference between if else and switchstatement
whitch value return void main?
how we can say java is platform independent, while we require JVM for that particular Operating System?
What is substring in c?
#include<stdio.h> int main(){ int a[]={1,2,3,5,1}; int *ptr=a+4; int y=ptr-a; printf("%d",y); }
actually i have 2 years teaching experience as computer faculty but now i am a DBA but when i go for interview many peoples asked me why i left my teaching profession and why i want to come in this field kindly give me the proper answer of this queston
Stimulate calculator using Switch-case-default statement for two numbers