K
Q. What will be the output of the following C code?
#include <stdio.h> void main() { int x = 10; int y = x++ + 20; printf("%d,%d",x,y); return 0; }
In the above code, we are using a post-increment statement (x++), post-increment increases the value after evaluating the current expression. Thus, the value of y will be 30 and then x will be 11.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What is a String in C Language?
Q. What is the correct syntax to declare a variable in C?
Q. which of the below has the highest precision?
Q. What will be output for the following code?
Q. What is the priority of operators *, / and % in C language.?
Q. Choose a correct statement about C structure elements
Q. What will be the output of the following C code? (Initial values: x= 7, y = 8)
Q. How will you free the memory allocated by the following program?
Discusssion
Login to discuss.