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 |
main( ) { int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}}; printf(ā%u %u %u %d \nā,a,*a,**a,***a); printf(ā%u %u %u %d \nā,a+1,*a+1,**a+1,***a+1); }
main() { signed int bit=512, mBit; { mBit = ~bit; bit = bit & ~bit ; printf("%d %d", bit, mBit); } } a. 0, 0 b. 0, 513 c. 512, 0 d. 0, -513
3 Answers HCL, Logical Computers,
how many processes will gate created execution of -------- fork(); fork(); fork(); -------- Please Explain... Thanks in advance..!
Is it possible to print a name without using commas, double quotes,semi-colons?
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.
how to check whether a linked list is circular.
main() { int i=-1; +i; printf("i = %d, +i = %d \n",i,+i); }
How to return multiple values from a function?
void main() { int k=ret(sizeof(float)); printf("\n here value is %d",++k); } int ret(int ret) { ret += 2.5; return(ret); }
How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };
main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }