Compilation & Interpretation Of C Program Explain With Examples
How To Run C Program:Basically when we run our c program then we first do Compilation (through compiler) & Interpretation (through interpreter) And then we finally run our program and get the output screen or console output.
Now i am explaining you step by step:
Step 1) Open turbo C and write down the program.
For Ex:
║#include<stdio.h> ║#include<conio.h>
║void main()
▒│║{
▒│║printf("Hello Friends");
▒│║printf("Happy Diwali - Amit Kumar Gupta"); ▒│║getch(); ▒│║}
Step 2) If you completed your program then save the program in any name with any extension c or c++.
Step 3) Then click on the top of turbo c editor "Compiler" or press Alt + F9 Then it show you How much error is having in your program (In compilation process we covert out source code to object code).
If it shows error then please again go to turbo editor and correct that error and again do compilation process.
If it shows successful then go for "Interpretation" (In this process we run our program as per our command or program). you can do interpretation by Clicking Interpreter Menu or Cntrl+F9. Then you see the output window.
This process is compatible with Windows 7, XP, Vista, Unix OS. And With All The Editors.
Search Keyword:



0 comments:
Post a Comment
Thanks For Your Comment. We Get Back To You As Soon As Possible.