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
πŸ’¬ Discuss
βœ… Correct Answer: (C) C Language
Explanation: '%s' prints the entire string stored in 'str'.
Explanation by: Mr. Dubey
'%s' prints the entire string stored in 'str'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
77
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
89%
Success Rate