R

Rudra Pratap Singh • 3.39K Points
Extraordinary

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!");

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;
}

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics