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

You can do it
  1. The output of the following code is: void main() {float a;int x = 10, y = 3; a = x / y;printf("%f",…
  2. Only one break can be used in one loop.
  3. All macro substitutions in a program are done before compilation of the program.
  4. What will be output if you will compile and execute the following c code?#include int main(){ float…
  5. The identifier argv[] is a pointer to an array of strings.
  6. # define PI = 8;' is the correct declaration of macros.
  7. What is the difference between overloaded functions and overridden functions?
  8. The output of the following code is: main() { int k, num = 30; k = (num > 5 ? (num <= 10 ? 100…
  9. The output of the following code is: int f(int a, int b); void main() {int a = 12, b=154; printf("%d",…
  10. Which options shows the correct hierarchy of arithmetic operators
  11. p++ executes faster than p + 1.
  12. A pointer is an indication of the variable to be accessed next.
  13. An array declared as A[100][100] can hold a maximum of 100 elements.
  14. fopen() function returns a pointer to the open file.
  15. The output of the following code is: main() { int sub[50]; for(i=0; i<=48;i++) { sub[i]=i; printf("%d",…
  16. A recursive function calls itself again and again.
  17. The default initial value of automatic storage class is 0.
  18. Which header file is essential for using strcmp() function?
  19. strcat() function ----------------------- two strings.
  20. The output of the following code is: void main() {int a; int &b = a;a=100; printf("b=%d\ta=%d",…
  21. Which of the following correctly describes C++ language?
  22. Right shifting an operand 1bit is equivalent to multiplying it by 2.
  23. The size of signed integer is ------ bytes.
  24. Left shift operator rotates the bits on the left and places them to the right.
  25. Which of the following is not a preprocessor directive
  26. What is an array?
  27. Which among the following is a unconditional control structure
  28. What will be output if you will compile and execute the following c code? #include int main(){ int i=320;…
  29. struct stud{int roll;char name[20];float marks;} *p;What will be the byte size of p?
  30. The output of the following code is:void change (char *k) {k="Hello";return; } main() { char *ch = "World";;change(ch);…