A
Q. What is the output of the following C program?
#include <stdio.h> int main() { float a = 0.1; if (a == 0.1f) printf("equal\n"); else printf("not equal\n"); }
To check the equality of a float number you have to follow the value with the f letter. The output is as follows: $gcc prog2.c $ a.out equal
You must be Logged in to update hint/solution
Q. What is the output of C program?
Q. What is the output of this program?
Q. The rule for implicit type conversion is
Q. which of the following is not a storage class specifier?
Q. What is the output of this program?
Q. For the following declaration of a function in C, pick the best statement
Q. What will be output if you will compile and execute the following c code?
Q. Which is Bit Toggling operator below.?
Q. In which version of C language, the C++ Style comment (//) are introduced?
Discusssion
Login to discuss.