Compile and Run

Rules of C program

C is case sensitive programming language, it means variable name "MYDATA" is different from a variable name "mydata". Write all keywords are in lowercase. Keywords cannot be used for any other purpose (like variable names or function names).

Every C program statements must end with semicolon (;). Thus semicolon (;) works as a statement terminator. First character of variable must be an alphabet or underscore. No any special character allowed in variable name but underscore(_) is allowed

Blank space is not allowed in variable name. Variable must be declared before it is used in the program. Do not use keyword for variable name and function name.

Extension of C program file is ".c". First compile your program if program has not any error then run it.


A simple program in C language

first start turbo c++.

Type the below program.

Press f2 for save.

save file with .c extension. Example "myfile.c".


How to compile c language program

A compiler is a program that translates human-readable source code into computer-executable machine code.

Press Alt + f9 for compile.

If no any error in your program then you can run it.


How to run C language program

Press Ctrl + f9 for run

When your program successfully execute then you can 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