Home / Programming MCQs / C Programming MCQs / Question
K
Q. What will be the output of the following C code?
#include <stdio.h> int main() { float x = 23.456; printf("%.2f",x); return 0; }
In the above code, the value of x is 23.456 and we are printing the value of x using the %.2f format specifier. %.2f rounds the value and prints the 2 digits after the decimal point.
You must be Logged in to update hint/solution
What will happen if the loop condition will never become false?
What is the need for C arrays.?
Choose a syntax for C Ternary Operator from the list.
In C++ Overloading is otherwise called as
Which of the following is not a valid variable name declaration?
Variables of type auto, static and extern are all stored in?
Which one is not a primary constant in C
Choose a correct statement about C language break; statement.
Discusssion
Login to discuss.