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

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

You can do it
  1. Which of the following shows the correct hierarchy of arithmetic operations in C
  2. The same variable names of automatic type can be used in different functions without any conflict.
  3. /* The C language./* is a procedural language .*/*/The above statement is valid.
  4. Which of the following is not a preprocessor directive
  5. Which one of the following is not a fundamental data type in C++
  6. A pointer is an indication of the variable to be accessed next.
  7. char *s[10] defines an array of ------------------------
  8. In the expression - 'x + y + 3z =20'
  9. The -------------------------- loop executes at least once.
  10. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  11. Identify the wrong statement
  12. What is the right way to access value of structure variable book{ price, page }?
  13. The printf() function retunes which value when an error occurs?
  14. What is Keywords?
  15. A recursive function calls itself again and again.
  16. Which of the following is a valid destructor of the class name "Country"
  17. A continue statement causes execution to skip to
  18. ------ is the ternary operator
  19. Which header file is essential for using strcmp() function?
  20. The identifier argv[] is a pointer to an array of strings.
  21. continue statement is used
  22. enum helps to create user defined datatype.
  23. Which classes allow primitive types to be accessed as objects?
  24. What will be output if you will compile and execute the following c code?#include #define x 5+2 int…
  25. What does STL stand for?
  26. The output of the following code is: main() {int a = 0; for (; i = 0; i++) printf("%d", a); }
  27. The output of the following code is:void main() {char a = 'B';switch (a) {case 'A' : printf("a"); case…
  28. printf() is not a library function.
  29. Which of the following is not an infinite loop
  30. What is C Tokens?