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. p++ executes faster than p + 1.
  2. The output of the following code is: void main() {float a;int x = 10, y = 3; a = x / y;printf("%f",…
  3. The output of the following code is: void main() {int a = 1, b=2; int *ip; ip=&a; b=*ip; printf("%d",…
  4. What does STL stand for?
  5. Which of the following is not recommended in a header file?
  6. # define PI = 8;' is the correct declaration of macros.
  7. Character data types cannot be declared as unsigned.
  8. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…
  9. The expression 'int j = 6 + 3 % -9;' evaluates to -1.
  10. The same variable names of automatic type can be used in different functions without any conflict.
  11. What will be output if you will compile and execute the following c code?#include #define x 5+2 int…
  12. A declaration float a, b; occupies ___ of memory
  13. enum helps to create user defined datatype.
  14. What's wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);
  15. The output of the following code is: main() { int k, num = 30; k = (num > 5 ? (num <= 10 ? 100…
  16. The output of the following code is: #define sqr(x= x*x) main() {int a = 10, b = 5; printf("%d, %d",…
  17. Which of the following correctly describes C++ language?
  18. The expression (i + j)++ is illegal.
  19. emp name' is a valid variable name.
  20. The main() function can be called from any other function.
  21. Which among the following is a unconditional control structure
  22. Union is used to hold different data at different time.
  23. Which of the following is the most preferred way of throwing and handling exceptions?
  24. The expression "b = 3 ^ 2;" will evaluate b = 9.
  25. An array declared as A[100][100] can hold a maximum of 100 elements.
  26. Each pass through a loop is called a/an
  27. Which of the following shows the correct hierarchy of arithmetic operations in C
  28. When is std::bad_alloc exception thrown?
  29. Left shift operator rotates the bits on the left and places them to the right.
  30. Nested macros are allowed.