{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Exe after linking 24 executable code 24

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: language since it combines some features of low­level (assembly) language and some of high­level language. Therefore, it has advantages of both 21 C++ Files Source File Object File Executable File Backup File 22 22 Source File Object File The program which is converted to machine code by the compiler is called object code and the file containing object code is called object file Executable File The program which is written by the user/programmer in a C++ language is called source program or code and the file which contain the source code is source file The executable file contains the executable code Backup File The backup file contains the backup or copy of the source code 23 23 First.CPP ---------------------------Source----program----------------------------------------- C++ Files First.Obj After Compilation ---------------------------Object----Code-------------------------------------------- First.Exe After Linking 24 ---------------------------Executable----Code--------------------------24 --------------- Structure Of A C++ program # include <iostream.h> Void main() { clrscr(); Cout<<“hello”; } The main () Function The “main ()” function indicates the beginning of a C program. Wh e n a C p ro g ra m is e xe c ute d , th e o p e ra ting s ys te m g ive s c o ntro l d ire c tly to th e main() func tio n. If main() func tio n is no t inc lud e d th e main() func p ro g ra m is no t c o m p ile d a nd a n e rro r m e s s a g e is g e ne ra te d . 25 25 Structure Of A C++ program Void main() { clrscr(); Cout<<“hello”; } Body of main function...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online