Q. Which of the following functions display “Hello, World!” on the screen in console mode?

  • (A) echo("Hello, World!");
  • (B) print("Hello, World!");
  • (C) printf("Hello, World!");
  • (D) show("Hello, World!");
πŸ’¬ Discuss
βœ… Correct Answer: (C) printf("Hello, World!");
Explanation: printf function allow us to display a text on the screen in console mode. Example:

#include <stdio.h>
int main()
{
printf("Hello, World!");
return 0;
}
Explanation by: Rudra Pratap Singh
printf function allow us to display a text on the screen in console mode. Example:

#include <stdio.h>
int main()
{
printf("Hello, World!");
return 0;
}

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
180
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Rudra Pratap Singh
Publisher
πŸ“ˆ
80%
Success Rate