Q. Which of the following functions display “Hello, World!” on the screen in console mode?
β
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;
}
#include <stdio.h>
int main()
{
printf("Hello, World!");
return 0;
}