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 |
void main() { int c; c=printf("Hello world"); printf("\n%d",c); }
How we print the table of 3 using for loop in c programing?
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.
main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n", bit = (bit >> (i - (i -1)))); } } a. 512, 256, 128, 64, 32 b. 256, 128, 64, 32, 16 c. 128, 64, 32, 16, 8 d. 64, 32, 16, 8, 4
Sir... please give some important coding questions asked by product companies..
plz send me all data structure related programs
main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }
Is this code legal? int *ptr; ptr = (int *) 0x400;
main() { int i, j; scanf("%d %d"+scanf("%d %d", &i, &j)); printf("%d %d", i, j); } a. Runtime error. b. 0, 0 c. Compile error d. the first two values entered by the user
Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like.
21 Answers ABC, eBay, Goldman Sachs, Google, HUP, Microsoft, TATA,
What is the main difference between STRUCTURE and UNION?
main() { char string[]="Hello World"; display(string); } void display(char *string) { printf("%s",string); }