C - Write program to output 'Hello World' to console window

Requirements

Write program to output 'Hello World' to console window

Hint

Use printf() function;

Hard code the text as string.

Demo

#include <stdio.h> 

int main() // w w  w. jav  a  2  s. com
{ 
     printf("Hello world!\n"); 
     return(0); 
}

Result

Related Quiz