Live quiz

C Programming - Part 49

Question 1 of 25 Hints left: 3
Q1

Comment on the output of the following C code. #include <stdio.h> int main() { char *str = "This" //Line 1 char *ptr = "Program\n"; //Line 2 str = ptr; //Line 3 printf("%s, %s\n", str, ptr); //Line 4 }

  • A
  • B
  • C
  • D