DEV Community

Cover image for "How to get started in c programming?"
Rohan goyal
Rohan goyal

Posted on • Updated on

"How to get started in c programming?"

This program is first in c programming and simple also in programming. This program is very short and in this program, we tell how to use the printf, scanf, include and many more function are used in this program and the start program this program run on turbo c or Visual Studio Code

Turbo c

#include// used to a Header file which contain all the I/o functions
like printf,scanf
#include// used to store the value
void main()//used to Main function returns void in void main
clrscr(); //used to clear the output window
printf("hello everyone"); //used to print the “character, string, float,
integer, octal and hexadecimal values” onto the
output screen. We use printf() function with %d
format specifier to display the value of an integer
variable.
getch();// used to getch() reads a single-byte character from input.
getch() is a way to get a user inputted character. It can be used
to hold program execution, but the "holding" is simply aside-
effect of its primary purpose, which is to wait until the user
enters a character.
}

INPUT

OUTPUT

Visual Studio Code

#include// used to a Header file which contains all the I/o functions
like printf,scanf
int main() // used to Main function returns integer in int main
{
printf("hello every one"); //used to print the “character, string, float,
integer, octal and hexadecimal values” onto the
output screen. We use printf() function with %d
format specifier to display the value of an
integer variable.
return 0; //used to return the value of the main function is considered the
"Exit Status" of the application. On most operating system
returning 0 is a success status like saying "The program worked

fine"
}

INPUT

OUTP

Top comments (4)

Collapse
 
swapnil7000 profile image
Swapnil7000 • Edited

Good work!!Keep it up

Collapse
 
priyanshu2001 profile image
Info Comment hidden by post author - thread only accessible via permalink
Priyanshu2001

Nice work 👌👍

Collapse
 
rohan_goyal_rg profile image
Info Comment hidden by post author - thread only accessible via permalink
Rohan goyal

Thanks priyanshu

Collapse
 
abhishek123bit profile image
abhishek123-bit

You doing best

Some comments have been hidden by the post's author - find out more