0 ratings 0% found this document useful (0 votes) 49 views 8 pages Fundamental of C Programming (PPS)
The document outlines the phases of programming, including problem definition, planning and design, coding, testing and debugging, deployment, and maintenance. It also discusses flowchart building blocks and the general structure of a program, emphasizing the importance of compiling for error checking and optimization. Additionally, it differentiates between compilers and interpreters, and defines algorithms and their characteristics.
AI-enhanced title and description
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here .
Available Formats
Download as PDF or read online on Scribd
Go to previous items Go to next items
Save fundamental of c programming (pps) For Later Explain various phase of process af programming in detail?
—] > Problem defination and Analysis: Understand the require m-
ent and constraints:
ud Planning and design: Develop algorithms, Flowchart and chosse
appropriate structure 7
» Write the opHmise source code
wy) “Testing @ debugging: ZdentiFy @ Fix the erron through
multiple testing level.
[v> Deploymens & Execwtion: Launch the program for actual
use ee a
[VD maintenance @ Updates: Continuosly improve ,fix bugs and
e@ enhance functionality:
Explain vawtous building blocks used in Plowchart 9 Explain with |
one example «
_) Their are types blocks Used jn Plow shart
SC se ifatp 2 ie Beck indices
the proqoam was sa7F Gr)NAGESH KARAIAGI ORCHID COLLEGE OF ENGINEERING & TECHNOLOGY, SOLAPUR
y = Taput Joutput ¢ This block indicates Hay
/— J, P / the Input and output sp
code
a] Ep pression] : To show formula,
oo Pert et Expression (or) prcess
a Aerie jncode-
, Decision making : Ta decide the ceditond)
0 one ie
SEES — o
Tt lb > Flew lines © To show the working of
program
—+ loop + To show the loops used in
programe Pot eee
ff — fonchon: To show the funchons usec)
lt 9 z Beer
in program:
\) Connector i To connect the rem
program—_[ Print the sum, :
‘Sub, malt, div
: |
C stop _)
Exploin basic qenral structure oF ¢ program:
1) Genral struchur:
Documentation
section
“Unk section
OeFinition section
Globa) section
main
nchon sectio
___beclaration part
Execution part
Subprogram section
Function 1| Beplais ane Reitoaiags
In ¢ program
YS pocumen+tation » Comments
consist sever
describing the program
ny Unk sechon: TInelude system Jib caries”
mt) DeFination section: Defines symbolic cons tants.
") Global declaration: Declare global varia ble ond —
Y) Main 0 function
rer checking:
| Function- Te
Contains vanable declaxatton
and executavle state mentt.
“v) Sub program) secHon: User-defined Function €
“used in maine.
—
an) Erors are mistake that 4 takes place daving
programming process -
) “Weir are %-+upes of error
iy Ren-time err: This ermr occurs due 40 using
1) syntax errors This @eeersor occurs
due te grommatical
mistake Cor) break the rule:
emi=col05, missing punckoaso
missing
ss Logical ery error This errer aecurs due to
missing the loqie:
Ex: Giving” the wrong formula in wren 4 |
sequence.
the user
aquare oot of neqative numberBeate 9) Debugging of program: the 4esting and debuaging phase
Es oF prgramming ensures
error-free execution. Programmers identifty and
fix syn tax error Cwhieh preven? com pilmdion) and loqica)
error (Which allow executian but produce Incorrect
results). Dubuqging tools Ike Eclipse Cot, provide break
points, steppiog trough code § variable inspection to lacate
and resolve tissues eFficienHy. W's phase tg Crucial fr
ensuring program relia bitty § :
| Explain why compling Ps Important for c- programming?
— |) compiling is the process of converting humon reodable
C Source Code indo machine executable code that a computer
can yun.
nsures error checking , optimication , platform specific
exeustion And efficiency i
The program js written in ¢ and
—e writing the code
The programmer interach with
compiler using He Aerminal
(or) command promp)’
snp Compiling the progrom. A compiler tronslah
source code inty machine
code. :
wy Executing the program : Once Compiled suceess fully,
7 an executable File is
“ereated , Which can be yun- 2ESI KARAIAGI ORCHID COLLEGE OF ENGINEERING & TECHNOLOGY, SOLAPUR
Necessity of compilation
Converts
source code -to machine code so computer
understand and execute ins truchon
2) Detect Synetax error before
rs Sue
a execution, preventing
in the ar program. fae
23> OpHmizes proformance thrpugh code
im provement
‘ mH “Ensure platform com ity Br “efticienr ©
a execuHony ae 7
©.) | Explain various Sanquaqe Aranslator
\anguage
ng"
Used for prqramming
Lonqusqe trans lahore
convert human- readable.
programming long uage
_| micre processor kits.
into machine code .Used in
| > Tet a
are classified into to three 44 pest FH
a) Aesembler
Converts assembly lanquage lot maching
code. mic
Used in micr pwcessor kits
WD Tolerpeters Trans lates
and executes preqrams Vine | by
Vine, Showing errs
one at 2 trme-
Slowey but uses
less memor,I) Compiler + BLES
‘Translates the prrqrarn at onee ,qenera-
Ang an executadle file Faster than an
interpreter bub requires more memory . Used in C, c+,
Tortran
GJ | Explain program development process 7
What do you understand Fo& 7 Explain FOE Used
for © ~ programming.
\Y An Ioreqrated Development Lavirnment LIOE) isa
Software Suite design +o hale developers eFlidentty create,
wild, and debuq code.
edit, navigate ,
“high lighting , auto - completion and parsject mana qe ment
cools:
(Ee é cee
my) cThey do not inelude compiler (a) ebuaqer by defau)} bur
ide frame work for integrating them =
|) Developers ean min and match diffevent tools to suit
Spaific prjed .
= a “DeFine Aigo vithmy and ew plain chavackensHer of algorithm?
—\deFination:- An algorithm isa structied sequence of: step
design +0 solve a problem and gqenrate specific
outpurchasactenstics:
Finite steps ! Must have a defined num ber of steps and
terminate in Finite Hime
a) frecuracy and completeness: Bach step should be wall
defined and self - sufficient.
3) Handling Worst Cases: “The logic should account for evhreme
Scenanos
Must allow input doto Bren required
Should produce a clear and Correct
result 4 aPter e
Uy Tn par capability:
S) Define output: s
| Differensiate bet compiler and (Inter peter.
5 Com piley- a a “Inter peter.
S of Tt ceads wnele program Ft reads a progyam
: [at atime: : = Vine by line -
[Ft Granslates whole pmaramy 2) translabe tep7a Sar
lata time: [ Nine by tine a -
BD) [P+ produces machine code Which 3) Ft prduces an in}
is direcHy nderstood by fe code after translation
| compilers
3] Require more spa
== ee eS