"C" is a basic programming language in computer engineering .
Turbo 'C' or codeblock software is used to run the 'C' Programmes.
Program is a set of instructions, develop the 'C' program a systematic sequence of operations is necessary to perform the sequential operations algorithm is required.
Algorithm-An algorithm is the sequence of logical steps required to perform a specific task.
Example -To add two numbers "A and B'
Step 1 : Start the calculation.
Step 2 :Input the value for variable A
Step 3: Input the valu for variable B.
Step 4: Add the two variables,i.e.calculate.
C=A+B
Step 5: Display the value of result C on the screen.
Step 6:
End the calculation.
Program-
# include<stdio.h>
//first line of program indicates header files
The header files are present in "INCLUDE"Subdirectory.stdio.h is the standard input output
# include <conio.h> is also the header file .Their are different header files for "INCLUDE" Subdirectory.
Following is the list of important header files.
ALLOC.H, ASSERT.H, BCD.H, BIOS.H COMPLEX.H CONIO.H FCNTL.C FLOAT.H FSTREAM.H GRAPHIC.H GRAPHICS.H IO.H LIMITS.H, STREAM.H STRING.H TIME.H
main()
{
int a,b,c;
//Data type
'C' supports 4 basic types of data .They are as shown below.
int= This is integer quantity.it can be a long integer or short integer.
Size-:2 bytes(short)
4 bytes(Long)
Range= -32768 to 32767 or
-2.14*10^9 to 2.14*10^9
Char-Single character type data .It can be signed or unsignes type.
Float- This is floating point number .This number contains exponent or decimal point.
Size -4 byte .
1.2*10^38 to 3.4*10^38
Double
Turbo 'C' or codeblock software is used to run the 'C' Programmes.
Program is a set of instructions, develop the 'C' program a systematic sequence of operations is necessary to perform the sequential operations algorithm is required.
Algorithm-An algorithm is the sequence of logical steps required to perform a specific task.
Example -To add two numbers "A and B'
Step 1 : Start the calculation.
Step 2 :Input the value for variable A
Step 3: Input the valu for variable B.
Step 4: Add the two variables,i.e.calculate.
C=A+B
Step 5: Display the value of result C on the screen.
Step 6:
End the calculation.
Program-
# include<stdio.h>
//first line of program indicates header files
The header files are present in "INCLUDE"Subdirectory.stdio.h is the standard input output
# include <conio.h> is also the header file .Their are different header files for "INCLUDE" Subdirectory.
Following is the list of important header files.
ALLOC.H, ASSERT.H, BCD.H, BIOS.H COMPLEX.H CONIO.H FCNTL.C FLOAT.H FSTREAM.H GRAPHIC.H GRAPHICS.H IO.H LIMITS.H, STREAM.H STRING.H TIME.H
main()
{
int a,b,c;
//Data type
'C' supports 4 basic types of data .They are as shown below.
int= This is integer quantity.it can be a long integer or short integer.
Size-:2 bytes(short)
4 bytes(Long)
Range= -32768 to 32767 or
-2.14*10^9 to 2.14*10^9
Char-Single character type data .It can be signed or unsignes type.
Float- This is floating point number .This number contains exponent or decimal point.
Size -4 byte .
1.2*10^38 to 3.4*10^38
Double