Steps in Development of C Lang Program
1. Enter, Edit and save source code using any text editor app like notepad, notepad++, sublime etc.
2. translate the source code into machine code using a language translator app (compiler or interpreter)
3. link the machine code with library routine using linker
4. test and debug the program
5. make executable program
>>>Diagram
IDE (Integrated Development Environment)
It is a software that provides all the facilities required to develop a small program to manage entire software project.
Many IDEs developed by different vendors are available for every programming language.
some IDEs support more than one programming languages.
We can also practice Programming with Online Compilers
popular IDEs for C programming:
Turbo C, Code Blocks, DevC++,VS Code etc.
Keyboard Shortcuts of Code Blocks:
Zoom in : Ctrl+ +
Zoom out : Ctrl+ –
Copy: Ctrl+C
cut: Ctrl+X
Paste: Ctrl+V
Buil and Run program: F9
Program1:
//Example c program that displays a welcome message
#include<stdio.h>
void main()
{
printf(“Welcome to C Programming”);
}
Program2:
//C program to display the value of a number
#include<stdio.h>
void main()
{
int x;
x=10;
printf(“value of x is %d”,x);
}
Program3:
//C program that adds two numbers and display their sum
#include<stdio.h>
void main()
{
int a,b;
a=15;
b=25;
int sum=a+b;
printf(“Sum of the numbers is %d”,sum);
}
2. translate the source code into machine code using a language translator app (compiler or interpreter)
3. link the machine code with library routine using linker
4. test and debug the program
5. make executable program
>>>Diagram
IDE (Integrated Development Environment)
It is a software that provides all the facilities required to develop a small program to manage entire software project.
Many IDEs developed by different vendors are available for every programming language.
some IDEs support more than one programming languages.
We can also practice Programming with Online Compilers
popular IDEs for C programming:
Turbo C, Code Blocks, DevC++,VS Code etc.
Keyboard Shortcuts of Code Blocks:
Zoom in : Ctrl+ +
Zoom out : Ctrl+ –
Copy: Ctrl+C
cut: Ctrl+X
Paste: Ctrl+V
Buil and Run program: F9
Program1:
//Example c program that displays a welcome message
#include<stdio.h>
void main()
{
printf(“Welcome to C Programming”);
}
Program2:
//C program to display the value of a number
#include<stdio.h>
void main()
{
int x;
x=10;
printf(“value of x is %d”,x);
}
Program3:
//C program that adds two numbers and display their sum
#include<stdio.h>
void main()
{
int a,b;
a=15;
b=25;
int sum=a+b;
printf(“Sum of the numbers is %d”,sum);
}