Basics of C Programming

Simple program syntax of c language

first include " #include<stdio.h>" and "#include<conio.h>" header file in top of program. define main() function.

Note:- main() is a user define function.


printf() function in C

It use to display output.

It is the function of stdio.h header file.

Syntax

printf("............");


clrscr() in C

It use to clear output screen.

Without clrscr() run program more time, you can see previous output data in current output screen. Therefore clrscr() use to clear screen first then display output.


getch() in C

If you do not use getch() then output screen do not wait for you. Therefore you can not see program output in turbo c++

If you want to wait output screen for you then you can use getch().

See Output

About Us

Comsysapp.com is an educational website. Students and software developers can learn programming language tutorials. Comsysapp is very useful for beginners and professional developers. Comsysapp provides tutorial in easy language. Comsysapp.com has focus on simplicity.

Services

Comsysapp.com provides free tutorials like c, html, css, etc. All tutorials are free for beginner and professionals.


Terms of Use

comsysapp.com is not responsible for any mistake. We are not responsible if information made available on our website is incomplete or invalid. But comsysapp.com always try for zero-zero mistake.

Privacy policy

comsysapp.com does not collect any data from users. We use Google AdSense advertising on our website. We never ask personal or private information.


Sitemap

sitemap

copyright © 2023