What is the use of define in c?
No Answer is Posted For this Question
Be the First to Post Answer
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?
Write an algorithm for a program that receives an integer as input and outputs the product of of its digits. E.g. 1234 = 24, 705 = 0
Why shouldn’t I start variable names with underscores?
Switch (i) i=1; case 1 i++; case 2 ++i; break; case 3 --i; Output of i after executing the program
Write a C program that defines a 2-dimentional integer array called A [50][50]. Then the elements of this array should randomly be initialized either to 1 or 0. The program should then print out all the elements in the diagonal (i.e. a[0][0], a[1][1],a[2][2], a[3][3], ……..a[49][49]). Finally, print out how many zeros and ones in the diagonal.
main() { intj; while9j<=10) { printf("\n%d",j); j=j+1; } }
How do we select the big element or any other operation from array which is read dynamically. user need to give the elements only no need to mention the size.
Write a program to check prime number in c programming?
Does c have an equivalent to pascals with statement?
When should a type cast be used?
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
Explain modulus operator.