1.

Which of the following statements are correct about the program given below?#include <stdio.h>int main () { float k = 0.7; if (k < 0.7) printf ("C n"); else printf ("C++ n"); return 0 ;}

A. The program will output C
B. The program will output C++
C. Compiler will report an error saying a float cannot be compared with a double.
D. Output will be C for 16-bit compilers and C++ for 32-bit compilers
Answer» B. The program will output C++


Discussion

No Comment Found

Related MCQs