plz tell me the solution..........
in c language program guess any one number from 1 to 50 and
tell that number within 8 asking question in yes or
no...............
Answers were Sorted based on User's Feedback
Answer / danish
he ask for 8 question
so it can be any 8 question ,
now use divide -conquer apprach to solve this problem as
Is it number <= 25
then, again split the range and within 8 question you can solve question......
GOOD BYE
| Is This Answer Correct ? | 5 Yes | 0 No |
program to find magic aquare using array
write a c-program to find gcd using recursive functions
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }
main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
How do you write a program which produces its own source code as its output?
void main() { int i=i++,j=j++,k=k++; printf(“%d%d%d”,i,j,k); }
To reverse an entire text file into another text file.... get d file names in cmd line
int aaa() {printf(“Hi”);} int bbb(){printf(“hello”);} iny ccc(){printf(“bye”);} main() { int ( * ptr[3]) (); ptr[0] = aaa; ptr[1] = bbb; ptr[2] =ccc; ptr[2](); }
main() { clrscr(); } clrscr();
#include<stdio.h> main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; }
void func1(int (*a)[10]) { printf("Ok it works"); } void func2(int a[][10]) { printf("Will this work?"); } main() { int a[10][10]; func1(a); func2(a); } a. Ok it works b. Will this work? c. Ok it worksWill this work? d. None of the above