Home

The output of the following code is:
void main() 
{
int a;
int &b = a;
a=100;
printf("b=%d\ta=%d
", b,a);
}

A. b=100 a=100

B. b=100 a=0

C. b=0 a=100

D. Error

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

You can do it
  1. Which of the following is not a standard exception built in C++.
  2. printf() is not a library function.
  3. emp name' is a valid variable name.
  4. static variable will not always have assigned value.
  5. What will be output if you will compile and execute the following c code? #include int main(){ int i=320;…
  6. The output of the following code is: int f(int a, int b); void main() {int a = 12, b=154; printf("%d",…
  7. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…
  8. strcat() function ----------------------- two strings.
  9. When a user defined function is defined in program, then it has to be called at least once from the…
  10. An array declared as A[100][100] can hold a maximum of 100 elements.
  11. The output of the following code is: main() {int a = 5, b = 6; (a == b? printf("%d", a)); }
  12. What's wrong? while( (i < 10) && (i > 24))
  13. Which of the following correctly describes C++ language?
  14. The expression 'int j = 6 + 3 % -9;' evaluates to -1.
  15. It is necessary to initialize the array at the time of declaration.
  16. = and = = have the same operation.
  17. && and & operators have the same meaning.
  18. The main() function can call itself recursively.
  19. If 'str' is a string of 7 characters, the statement printf("%4s", str); will display ------characters.
  20. All macro substitutions in a program are done before compilation of the program.
  21. Which header file is essential for using strcmp() function?
  22. What is the right way to access value of structure variable book{ price, page }?
  23. The output of the following code is: main() { int k, num = 30; k = (num > 5 ? (num <= 10 ? 100…
  24. When is std::bad_alloc exception thrown?
  25. perror( ) function used to ?
  26. fopen() function returns a pointer to the open file.
  27. A C variable cannot start with
  28. The array 'char name[10] can consist of a maximum of 9 characters.
  29. Which of the following is invalid?
  30. p++ executes faster than p + 1.