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. Character data types cannot be declared as unsigned.
  2. C is a ___ language
  3. What is an array?
  4. In the expression - 'x + y + 3z =20'
  5. What's wrong? while( (i < 10) && (i > 24))
  6. printf("%d", sizeof('2')); will print 2.
  7. Which of the following is not true about preprocessor directives
  8. The default initial value of automatic storage class is 0.
  9. The output of the following code is: int f(int a, int b); void main() {int a = 12, b=154; printf("%d",…
  10. A declaration float a, b; occupies ___ of memory
  11. Which of the following is invalid?
  12. && and & operators have the same meaning.
  13. The contents of a file opened in 'r+' mode cannot be changed.
  14. Which options shows the correct hierarchy of arithmetic operators
  15. strcat() function ----------------------- two strings.
  16. A continue statement causes execution to skip to
  17. Which of the following is allowed in a C Arithmetic instruction
  18. The printf() function retunes which value when an error occurs?
  19. The output of the following code is: main() { unsigned int a = 10; while (a>=10) { int a; a-- ; }…
  20. A C variable cannot start with
  21. What's wrong? for (int k = 2, k <=12, k++)
  22. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  23. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const…
  24. Which one of the following is not a valid reserved keyword in C++
  25. Which of the following is not an infinite loop
  26. struct stud{int roll;char name[20];float marks;} *p;What will be the byte size of p?
  27. The output of the following code is: main() { xyz: goto abc;printf("Hello"); abc: printf("World");goto…
  28. The output of the following code is:void main() {char a = 'B';switch (a) {case 'A' : printf("a"); case…
  29. What is Keywords?
  30. the value *(&i) is same as printing the value of address of i.