Live quiz

C Programming - Part 50

Question 1 of 25 Hints left: 3
Q1

What will be the output of the following C code? #include <stdio.h> int main() { char *str = "hello world"; char strary[] = "hello world"; printf("%d %d\n", strlen(str), strlen(strary)); return 0; }

  • A
  • B
  • C
  • D