Hello World Program in C Language – Basic C Program for Beginners

Basic c program

Here we are writing basic c program to print Hello world .

Program:

#include<stdio.h>

void main()

{

printf(“Hello World”);

}

Output:

Hello World

Printf() is a input function it is used to print statement on the screen.

In programming c printf() and scanf() are predefined functions.these two functions are part of studio.h

Q.What is stdio.h?

A.Stdio.h means standard input output header.here both input and output functions of standard header.

Q.What is printf()?

A.Printf() is a predefined function it is for printing statement on output screen.

Q.What is scanf()?

A.Scanf() is a predefined function in c .it is used to read the input from the user.

Q.What is main()?

A.main() is very important function in c program.without main we can’t get console screen.

Q.What is the use of #?

A.# is a preprocessor .it includes header files to the c program.

Q.What is the syntax of printf ()?

A.printf(“message”);

Explanation:

C program lo basic programs vachesi Hello world.manam #include<stdio.h> ane line rayatam valana preprocessor anedi standard input and output functions ni add chesiddi.next line vachesi void main(),ikkada void anedi null value and main anedi important c program lo .manam main function use cheyakunda c program rayalemu.main function raste manaki output screen anedi vastundi.

Curly bracket { raste manam program start chesinatlu.

Printf function rasi dantlo manam em print cheyalo a message rayali.a message raseppudu printf syntax use chestu rayali lekapothe errors vastayi.program complete ayyaka curly bracket close } chesi run cheste manaki kavalsina message output lo chuyistundi.

Leave a Comment