Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

C Language Examples - Output "Hello, World!"

C Language Examples - Output "Hello, World!"

C Language Examples C Language Examples

Use printf() to output "Hello, World!".

Example

#include

<

stdio.h

int

main

(

)

{

// Strings in printf() need quotation marks

printf

(

"

Hello, World!

"

)

;

return

0

;

}

Output result:



Hello, World!

C Language Examples C Language Examples