• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Start selling Create your account
Document preview thumbnail
Preview 4 out of 61 pages
Lecture notes

Class notes CSE (CSE101) C Programming for Engineering and Computer Science (B.E.S.T. Series), ISBN: 9780079136787

Document preview thumbnail
Preview 4 out of 61 pages

It contains CSE notes of c language unit 1 sem1 .

Content preview

C Program Development Environment
 A C program must go through various phases such as:
1. Creating a program with editor
2. Execution of preprocessor program
3. Compilation
4. Linking
5. Loading
6. Executing




©LPU CSE101 C Programming

, Program is created in
Editor Disk the editor and stored
on disk.
Preprocessor program
Preprocessor Disk processes the code.
Compiler creates
Compiler Disk object code and stores
it on disk.
Linker links the object
Linker Disk code with the libraries,

Primary Memory

Loader
Loader puts program in memory.
Disk ..
..
..




Primary Memory

CPU CPU takes each
instruction and
executes it, possibly
.. storing new data
..
.. values as the program
executes.
©LPU CSE101 C Programming

, Difference between library and headerfile
Header File is On other hand Library is
the file where all the file where the
the headers implementation code of
name are each header is written
mentioned that down which is mentioned
going to be used in the Header file.
or consumed in
the main code
file.



©LPU CSE101 C Programming

, C Program Development
Environment(cont.)
Phase 1: Create your Phase 2: A preprocessor Phase 3: Compiler
program with an editor find some preprocessor compiles the program
program directives (#include into machine languages
<stdio.h>) to include
other files.




Phase 6: CPU executes the Phase 5: A loader loads Phase 4: A linker links
program one instruction at the executable image the object code with the
a time. The load process in into memory (RAM). code in library or other
Windows OS is just input places to produce an
the name of the executable image.
executable file.



©LPU CSE101 C Programming

Connected book
 image
Publisher: 1998 ISBN: 9780079136787 Edition: Unknown

Document information

Uploaded on
October 31, 2021
Number of pages
61
Written in
2021/2022
Type
Lecture notes
Professor(s)
Dr krishan bansal
Contains
Functions and recursions
£6.22

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
4
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions