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. Which of the following is invalid?
  2. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  3. Which of the following shows the correct hierarchy of arithmetic operations in C
  4. fopen() function returns a pointer to the open file.
  5. perror( ) function used to ?
  6. # define PI = 8;' is the correct declaration of macros.
  7. For 16bit compiler allowable range for integer constants is ______ ?
  8. static variable will not always have assigned value.
  9. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…
  10. All elements of a structure are allocated contiguous memory locations.
  11. /* The C language./* is a procedural language .*/*/The above statement is valid.
  12. The identifier argv[] is a pointer to an array of strings.
  13. The statement "for (i = 0, j = 2; j <= 10; j++)" is a valid statement in 'C'.
  14. Identify the wrong statement
  15. Bitwise operators can operate upon?
  16. C is a ___ language
  17. What is right way to Initialization array?
  18. A pointer is an indication of the variable to be accessed next.
  19. The output of the following code is: void main() {float a;int x = 10, y = 3; a = x / y;printf("%f",…
  20. Which of the following keyword supports dynamic method resolution?
  21. The output of the following code is: void main() { static int a = 1, b, c;if (a>=2) b=2; c=3;printf("%d\t%d",…
  22. Which header file is essential for using strcmp() function?
  23. Which of the following is not recommended in a header file?
  24. continue statement is used
  25. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");
  26. Which one of the following is not a valid reserved keyword in C++
  27. The output of the following code is: main() { void msg() { printf("HELLO WORLD"); } }
  28. char *s[10] defines an array of ------------------------
  29. A multidimensional array A[10][9] can store-------- number of elements
  30. Which of the following is a valid destructor of the class name "Country"