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
Be the first to start discuss.
Q. Which symbol is used to begin a preprocessor?
Q. How many main() function we can have in our project?
Q. What is the limit for number of functions in a C Program.?
Q. What will be output for the following code?
Q. Which data structure is used to handle recursion in C?
Q. Which of the following function gives the current position in the file
Q. What will be output for the following code?
Q. Which of these functions should I use to round 2.5 to 2?
Discusssion
Login to discuss.