A

Admin • 833K Points
Coach

Q. What will be the output of this code?

Code:
#include <stdio.h>
int main() {
char str[] = "C Language";
printf("%s", str);
return 0;
}
  • (A) C
  • (B) Language
  • (C) C Language
  • (D) Compilation error
  • Correct Answer - Option(C)
  • Views: 20
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

'%s' prints the entire string stored in 'str'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.