What is calloc()?
No Answer is Posted For this Question
Be the First to Post Answer
What are the application of void data type in c?
Is null always defined as 0(zero)?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
Why is conio.h not required when we save a file as .c and use clrscr() or getch() ?
What is a 'null pointer assignment' error?
How to print %d in output
What is calloc in c?
how to swap two nubers by using a function with pointers?
How to print "Hi World" without using semi colon?
How do shell structures work?
what is void pointer?
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? Upload a C program to demonstrate the behaviour of the game.