Home

What would be the output of the following program?
int x=40;
main(){
int x=20;
printf("
%d",x);
}

A. 40

B. 20

C. Compilation Error

D. Garbeg Value

You can do it
  1. && and & operators have the same meaning.
  2. What's wrong? while( (i < 10) && (i > 24))
  3. The main() function can call itself recursively.
  4. Which of the following expressions is wrong
  5. All macro substitutions in a program are done before compilation of the program.
  6. In the expression - 'x + y + 3z =20'
  7. What is an array?
  8. If the class name is X, what is the type of its “this” pointer (in a nonstatic, non-const…
  9. The expression "int i = j = k = 0;" is invalid.
  10. The -------------------------- loop executes at least once.
  11. When a user defined function is defined in program, then it has to be called at least once from the…
  12. Which of the following correctly describes C++ language?
  13. Union is used to hold different data at different time.
  14. A declaration float a, b; occupies ___ of memory
  15. C programs are converted into machine language with the help of
  16. do-while loop is useful when we want the statements within the loop must be executed
  17. ------ is the ternary operator
  18. fopen() function returns a pointer to the open file.
  19. Which of the following is not an infinite loop
  20. The output of the following code is: main() {int a = 0; for (; i = 0; i++) printf("%d", a); }
  21. Nested macros are allowed.
  22. Which of the following is not a preprocessor directive
  23. The contents of a file opened in 'r+' mode cannot be changed.
  24. What will be output if you will compile and execute the following c code?#include int main(){ float…
  25. Which among the following is a unconditional control structure
  26. Single operations involving entire arrays are permitted in C.
  27. The output of the following code is: main() { void msg() { printf("HELLO WORLD"); } }
  28. Which header file is essential for using strcmp() function?
  29. # define PI = 8;' is the correct declaration of macros.
  30. The output of the following code is: void main() {int a = 0; while (a<=50) for(;;) if(++a % 50==0)…