Home

The output of the following code is:
void change (char *k) 
{
k="Hello";
return;
}
main()
{
char *ch = "World";;
change(ch);
printf("%s", ch);
}

A. Hello

B. World

C. Compilation error

D. Hello World

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

You can do it
  1. The output of the following code is: void main() {int a = 0; while (a<=50) for(;;) if(++a % 50==0)…
  2. Variables declared as register storage type gets stored in CPU registers.
  3. There are total ------ numbers of operators in 'C'.
  4. In the expression - 'x + y + 3z =20'
  5. Right shifting an operand 1bit is equivalent to multiplying it by 2.
  6. 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",…
  7. What will be output if you will compile and execute the following c code?#include #define x 5+2 int…
  8. The main() function can call itself recursively.
  9. What is C Tokens?
  10. Each pass through a loop is called a/an
  11. Which of the following is not a preprocessor directive
  12. Which of the following shows the correct hierarchy of arithmetic operations in C
  13. How many times the following loop will execute?for (a = 0; a < 4; a++)printf("hello");
  14. Identify the wrong statement
  15. unsigned char has a range from 0 to ------------
  16. An array elements are always stored in _________ memory locations.
  17. Which among the following is a unconditional control structure
  18. Which of the following is a valid destructor of the class name "Country"
  19. The statement "for (i = 0, j = 2; j <= 10; j++)" is a valid statement in 'C'.
  20. continue statement is used
  21. A function to be called must be ended with a----------------
  22. What will be output if you will compile and execute the following c code?#include int main(){ char c=125;…
  23. The size of signed integer is ------ bytes.
  24. Which of the following is not a standard exception built in C++.
  25. When is std::bad_alloc exception thrown?
  26. C programming language was developed by
  27. For 16bit compiler allowable range for integer constants is ______ ?
  28. What's wrong? for (int k = 2, k <=12, k++)
  29. Which of the following is not an infinite loop
  30. What is the right way to access value of structure variable book{ price, page }?