Tutorial references

c
c++
c#

Tutorial references

chapters

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 a ;. Thus ; 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 in variable name.

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.

Structure of C program

pre-processor directives
global variable declarations
main()
{
local variable deceleration
statement sequences
function invoking
}

A simple program

first start turbo c++.

Type the below program.

Press f2 for save.

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

Example

#include <stdio.h>
#include <conio.h>
void main(){
 clrscr();
 printf("Hello");
 getch();
}


Compile

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.

Run

Press Ctrl + f9 for run

When your program successfully execute then you can see output.


About Us

This website(www.sabbla.com) is very useful for beginners and professional developers. Sabbla provides tutorial in simple language. It provides latest technology tutorial which very useful for developers.

See More...

Contact Us

+91 9971366710

+91 9717983128

info@sabbla.com

Buxar, Bihar, India, Pin No.- 802131

Services

Sabbla is providing free latest technology tutorials. All tutorials are free for beginner and professionals.


Terms of Use

sabbla.com is not responsible for any mistake. Users can inform to sabbla.com for any mistake. But sabbla.com always try for 0-0 mistake.

Privacy policy

Currently sabbla.com does not collect any data from users.

                   

copyright © 2017-2018