how to programme using switch statements and fuctions, a
programme that will output two even numbers, two odd numbers
and two prime numbers of the users chioce.
No Answer is Posted For this Question
Be the First to Post Answer
void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); }
#define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); }
can u give me the c codings for converting a string into the hexa decimal form......
main() { void swap(); int x=10,y=8; swap(&x,&y); printf("x=%d y=%d",x,y); } void swap(int *a, int *b) { *a ^= *b, *b ^= *a, *a ^= *b; }
There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.
What is the output for the following program main() { int arr2D[3][3]; printf("%d\n", ((arr2D==* arr2D)&&(* arr2D == arr2D[0])) ); }
Display the time of the system and display the right time of the other country
How to use power function under linux environment.eg : for(i=1;i<=n;i++){ pow(-1,i-1)} since it alerts undefined reference to 'pow'.
main() { int i; i = abc(); printf("%d",i); } abc() { _AX = 1000; }
main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n", bit >> (i - (i -1))); } } a. 512, 256, 0, 0, 0 b. 256, 256, 0, 0, 0 c. 512, 512, 512, 512, 512 d. 256, 256, 256, 256, 256
posted by surbhi just now main() { float a = 5.375; char *p; int i; p=(char*)&a; for(i=0;i<=3;i++) printf("%02x",(unsigned char) p[i]); } how is the output of this program is :: 0000ac40 please let me know y this output has come
void main() { void *v; int integer=2; int *i=&integer; v=i; printf("%d",(int*)*v); }