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. Nested macros are allowed.
  2. The output of the following code is: #define sqr(x= x*x) main() {int a = 10, b = 5; printf("%d, %d",…
  3. Which one of the following is not a fundamental data type in C++
  4. strcat() function ----------------------- two strings.
  5. The output of the following code is: main() {int a[10], i; for (i = 1; I <= 0; i++) {scanf("%d",…
  6. All macro substitutions in a program are done before compilation of the program.
  7. A C variable cannot start with
  8. The output of the following code is: main() {int a = 5, b = 6; (a == b? printf("%d", a)); }
  9. The size of signed integer is ------ bytes.
  10. Character data types cannot be declared as unsigned.
  11. Which one of the following is not a valid reserved keyword in C++
  12. enum helps to create user defined datatype.
  13. The function fopen() on failure returns---------------------.
  14. perror( ) function used to ?
  15. Which of the following correctly describes C++ language?
  16. Left shift operator rotates the bits on the left and places them to the right.
  17. Operation between an integer and float always yields a float result.
  18. Which among the following is a unconditional control structure
  19. What is C Tokens?
  20. 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",…
  21. void' is a datatype.
  22. A continue statement causes execution to skip to
  23. The identifier argv[] is a pointer to an array of strings.
  24. What's wrong? (x = 4 && y = 5) ? (a = 5) ; (b = 6);
  25. What will be output if you will compile and execute the following c code?#include int main(){ char c=125;…
  26. Which of the following is a valid destructor of the class name "Country"
  27. A function to be called must be ended with a----------------
  28. ------ is the ternary operator
  29. The -------------------------- loop executes at least once.
  30. The statement "for (i = 0, j = 2; j <= 10; j++)" is a valid statement in 'C'.