K
Q. What will be the output of the following C code?
#include <stdio.h> int main() { int x = 20; x %= 3; printf("%d",x); return 0; }
In the above code, the value of x is 20 and then in the next statement, the expression is x %= 3. That will be evaluate as: x %= 3; x = x % 3; x = 20 %3; x = 2
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What is the output of C program?
Q. Each statement in a C program should end with?
Q. Which of the following is the correct usage of conditional operators used in C?
Q. A recursive function is faster than __ loop.
Q. Which is/are the correct syntax to initialize an array in C?
Q. The following statement in‘C’ language : int **a ;
Discusssion
Login to discuss.