There are N egg baskets and the number of eggs in each
basket is a known quantity. Two players take turns to remove
these eggs from the baskets. On each turn, a player must
remove at least one egg, and may remove any number of eggs
provided they all belong to the same basket. The player
picking the last egg(s) wins the game. If you are allowed to
decide who
is going to start first, what mathematical function would
you use to decide so that you end up on the winning side?
du u know test pattern for robosoft? Plz share
1 Answers RoboSoft, TATA, Wipro,
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
what is the self-referential structure?
#include<stdio.h> main() {int i=1;j=1; for(;;) {if(i>5) break; else j+=1; printf("\n%d",j) i+=j; } }
Can u return two values using return keyword? If yes, how? If no, why?
What are static variables, and where are they stored?
What is double pointer in c?
Explain how do you override a defined macro?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
0 Answers College School Exams Tests,
What is a far pointer in c?
print the palindrome numbers in between 0 to n
What is the heap?