Home

What will be output if you will compile and execute the following c code?
#include 
int main()
{
float a=5.2;
if(a==5.2)
printf("Equal");
else if(a<5.2)
printf("Less than");
else
printf("Greater than");
return 0;
}

A. Less than

B. Equal

C.

Greater than

D. None of above

You can do it
  1. Which of the following keyword supports dynamic method resolution?
  2. A function to be called must be ended with a----------------
  3. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const…
  4. There are total ------ numbers of operators in 'C'.
  5. Which classes allow primitive types to be accessed as objects?
  6. The expression "int i = j = k = 0;" is invalid.
  7. Each pass through a loop is called a/an
  8. The output of the following code is: main() { int k, num = 30; k = (num > 5 ? (num <= 10 ? 100…
  9. What would be the output of the following program?int x=40;main(){int x=20;printf("%d",x);}
  10. The function fopen() on failure returns---------------------.
  11. When is std::bad_alloc exception thrown?
  12. unsigned char has a range from 0 to ------------
  13. The output of the following code is:void main() {char a = 'B';switch (a) {case 'A' : printf("a"); case…
  14. Which among the following is a unconditional control structure
  15. The output of the following code is: main() { int sub[50]; for(i=0; i<=48;i++) { sub[i]=i; printf("%d",…
  16. printf("%d", sizeof('2')); will print 2.
  17. /* The C language./* is a procedural language .*/*/The above statement is valid.
  18. The output of the following code is: void main() {int a; int &b = a;a=100; printf("b=%d\ta=%d",…
  19. continue statement is used
  20. The expression 'int j = 6 + 3 % -9;' evaluates to -1.
  21. The main() function can be called from any other function.
  22. p++ executes faster than p + 1.
  23. Union is used to hold different data at different time.
  24. emp name' is a valid variable name.
  25. ------ is the ternary operator
  26. Every if statement can be converted into an equivalent switch statement.
  27. All elements of a structure are allocated contiguous memory locations.
  28. The default initial value of automatic storage class is 0.
  29. What is an array?
  30. The contents of a file opened in 'r+' mode cannot be changed.