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. The output of the following code is: void main(){ int a = 20;printf("%d\t%d", ++a, a);}
  2. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…
  3. Character data types cannot be declared as unsigned.
  4. The-------------------- statement helps immediate exit from any part of the loop
  5. What is the difference between overloaded functions and overridden functions?
  6. An array declared as A[100][100] can hold a maximum of 100 elements.
  7. Bitwise operators can operate upon?
  8. Which of the following is invalid?
  9. A continue statement causes execution to skip to
  10. A multidimensional array A[10][9] can store-------- number of elements
  11. Which of the following is not recommended in a header file?
  12. What will be output if you will compile and execute the following c code?#include #define x 5+2 int…
  13. For 16bit compiler allowable range for integer constants is ______ ?
  14. What's wrong? for (int k = 2, k <=12, k++)
  15. It is necessary to initialize the array at the time of declaration.
  16. ------ is the ternary operator
  17. Which of the STL containers store the elements contiguously (in adjecent memory locations)?
  18. C is a ___ language
  19. If 'str' is a string of 7 characters, the statement printf("%4s", str); will display ------characters.
  20. The expression (i + j)++ is illegal.
  21. Operation between an integer and float always yields a float result.
  22. Left shift operator rotates the bits on the left and places them to the right.
  23. char *s[10] defines an array of ------------------------
  24. The function fopen() on failure returns---------------------.
  25. The identifier argv[] is a pointer to an array of strings.
  26. static variable will not always have assigned value.
  27. What is an array?
  28. Right shifting an operand 1bit is equivalent to multiplying it by 2.
  29. A pointer is an indication of the variable to be accessed next.
  30. p++ executes faster than p + 1.