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

Please do not use chat terms. Example: avoid using "grt" instead of "great".

You can do it
  1. Every if statement can be converted into an equivalent switch statement.
  2. A continue statement causes execution to skip to
  3. What's wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);
  4. What's wrong? while( (i < 10) && (i > 24))
  5. Left shift operator rotates the bits on the left and places them to the right.
  6. What's wrong? for (int k = 2, k <=12, k++)
  7. The main() function can call itself recursively.
  8. p++ executes faster than p + 1.
  9. An array declared as A[100][100] can hold a maximum of 100 elements.
  10. Which of the following is not recommended in a header file?
  11. C programs are converted into machine language with the help of
  12. Which among the following is a unconditional control structure
  13. The expression 'int j = 6 + 3 % -9;' evaluates to -1.
  14. A C variable cannot start with
  15. The size of signed integer is ------ bytes.
  16. What does STL stand for?
  17. All macro substitutions in a program are done before compilation of the program.
  18. Bitwise operators can operate upon?
  19. = and = = have the same operation.
  20. C programming language was developed by
  21. What is right way to Initialization array?
  22. strcat() function ----------------------- two strings.
  23. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  24. continue statement is used
  25. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  26. The output of the following code is: void main() {int a = 1, b=2; int *ip; ip=&a; b=*ip; printf("%d",…
  27. Identify the wrong statement
  28. Which of the following is a valid destructor of the class name "Country"
  29. In the expression - 'x + y + 3z =20'
  30. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");