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 will be output for the folowing code?
Q. Library function pow() belongs to which header file?
Q. Which of the following operator has highest Precedence?
Q. String constants should be enclosed between ___
Q. Output of this statement is :
Q. Which loop executes the block a specific number of times?
Q. Which of the following function is used for sets the position to a desired point in the file
Q. Name the loop that executes at least once.
Discusssion
Login to discuss.