Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
100%
(1)
100% found this document useful (1 vote)
371 views
198 pages
Kiran Sir (C Notes)
Uploaded by
Aklesh kumar
AI-enhanced title
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
Download
Save
Save Kiran Sir ( c Notes ) For Later
Share
100%
100% found this document useful, undefined
0%
, undefined
Print
Embed
Report
100%
(1)
100% found this document useful (1 vote)
371 views
198 pages
Kiran Sir (C Notes)
Uploaded by
Aklesh kumar
AI-enhanced title
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
Carousel Previous
Carousel Next
Download
Save
Save Kiran Sir ( c Notes ) For Later
Share
100%
100% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Kiran Sir ( c Notes ) For Later
You are on page 1
/ 198
Search
Fullscreen
e Rs 2Ioofz Definition of Software ,- A Slw is @ collection tr prgms Cset o& instructions) which uses the ressnay 8 the lw components AS perthe Experts slw are classified in 3 categeowes, 1+ sgetem aw. as Application $v. 3+ Tntemet sia, A. System shot The system slw ts a sl which does the functionall ty for the Hw devices, Ate printers, mobile, processors --- ete. To clevelope this System sho we need o& Tiree Languages, Is Assembly level language Cmicwo processed Instruction] a Culanguage C procestute Orlented programming] KIRAN SIR 3+ Cat [ object oviented programming 1 pee eee System Sothuaie I, 9245392245 cor OL [command uses Tnterbaice] Lowaphical use, Intasece] Single. useY Muleiuses, multi tesk mmubdiuse Single Uses: - The processor can doe, only ene sob at a. Hime 15 called a Single uses, egi- Ms-pDes Mul& Ose3 + More than one user can use. the. mashine, od atime is called ag Mustruses Egi- ONIx Malti Tose<- . more than one (tosh) job is tating place ora time 1S called a4 muttitogk. &gi— win 45/99] 98] wr] 2000 [me /2003 ] xp | vista/#/8, Andriod, 105. 9. Dnolicnatan ¢hiysDesktop \ clet+ IRAN SIR Applicections not V -ynologies +P usp PHP Doto.bage : Every application sius teauives dataloye [ike dhase, foxpro, oracle; SAl--- Ek. Programming languages :- 4 lang. con be used forthe Communicedion purpose - A computer Lang's will be used te Ommuntcate with the use & the Systunns This Computer languages are, classified in Two categeeves- 1- Low level Gunguages « a- High level tangueges. '+ Low Level Languages (Li's): LLU'S ade the lang's ashich can be Sasily undesstamdable te the System. These are System depenclent lamguages. In this hwo Lang's we, 1+ Machine, language. a Assombly languoge- Machine languages - Tt ts the fundamental Language fAthe Syston te can clivectty Con be undustandable witha any translation. Thacare machine Orienteol Jong's thak use collection & binary ot 1's and ds. 85 wT, compute Con Undastand many language within évamalatien thee ta ently 4 dang. thet ls Hasty Language . As the isers prebe, decimal no's we debine to write the decimal no's but System esill convert into binary ns. ‘Tie, Computes meayuring untls bits ade, bytes. “Advantages t- a ea RET EeDis advantages: - 1 Remnembeving dogens a boinc code is not an egy Job as Rectitying the Errors & debugging proceysis a ime baking, & . modifying the pram is not Eagy. Assen - Te acca te lang: ty Tmplemented by the assembly code, This lang. canbe called ay Symbolte language. In owle, te vernember tagily the prgmng Coding be. Tmplementing this lang.» In this lang. ditt types Symes will be cased! to design ‘the prgmng- But-this assembly code can't undasianclable othe System. The assembly code directly nok understeundable -to the System so we Yeruive “Translaieys, They che Stypea, Fev igh level cocking Ie Absembley As Taterpretey & + Compiler, Assembler: Zt ts a trandatoy which converts the assembly Code tof the Mochine, code. Fgr- 8086 Assconblt 2f Assembler Machin Advantages: Soune coole Fanshey ie ATeIS Easy ty write the pgm Gmple to machine dang. Hibis Easyto Locate & corect the Eros. Dis advantagg + - % To leatn the. assembly lang. we need the. tnowkedge cb Heo. ‘High level languages :- HLU'S are. the lang’s which ave Easy fo undeystondable “for the sel. Tey aye usd dependent bangs . The Hus 1s & combination sh alphabets, cligits & Symbols. Té/s called ag Maio statements. TEIS Voy Easy Jang. Since it 1s geneal English lang. « But the Syston will not understandable “his lang’s,-for this reaton we have Transiats, Tnterpreta t- An Trterprete ts a ‘banslator udnich converts from H's to Machine cone, by checking the pram line by line. .Compiles 2 Tt 45 a translater which converts the HLL inte the machine cede fobjectve code} by checking the whole, Prgn adc. ime. Ege & Crt THis Translators ae not a physteal companantt. They ade alyo sebhoare [system sla]. [Noy tastat transiaves ts compte}. Advantages :- 4 ib ts vey Gasy to understandable to write the Pigrng 0 aus. ¥ it ts easy to debug the Prgmag Coale. Dis advantages :. : ¥ TE take move. memory to implement the applications. % Machine & assembly lang'sare more ebGicient than HLS. Histon ds C-language :- Around 7 1960's the 2 most tmp. prgreg fangs COBOL [ commen business Oviete) larg] 48 Commeica app's and FORTRAN [formal Tramslation] for scientific Engg. nips, Ldesige daxinchings*, development ot Engg caletlocins ~--- ete]. These mary APPS can be cleve-loped by using his fang. but this Lang's can be usec! only +0 develope specie apps. fd-+tKts reayon the parts cleared to clevelope a new fin Richards Dennis Ritchie, ere, 4 Cristophes shrach Cambridge, mid eds BTL, RAL Wwe we following Anisr—< T-Ameican national standad Tosthde o& C]- we have Ome more ‘Cre; K& Roe [ kenighan& Ritchie]. Chosactersics &C :- % Can onid—level prgring Lang. As Wet, we have dow level Pagrong Lang's tn which the System can undletstocd Easily + &32- Miao processors - Ken Tompss 7 me name or C=lang: #5 cama dem wepe, eTathe art Leiter] fama the BERL. C->combined*% —C supports 44 operators , 32 Keg worels & y Separators « * Cts an Cage- Sensitive Lang. + Coye-Sensitive means -the lower case char & the upper ange chat. hag the olitte enconing. % — ENery C statement Ends with an Semieolon C3) The C lang Supports age, St oe Libra functions, Cis an fun" onientel, procedite oriented & Struchde Oriented PIG dong * * The Source code what we tmplemented 1 c-lang. tt ts totally clepencly an tun'al structives for this veason rb 1s alled ay han’! oniented pagmays Deviding the pigm into Smal mootules according +o THs opeations ts called @3 procedure Oriented paging. A Shucture Oriented Pagmng hos +0 Sadisty S Gitaio’s, As Seguence ob Steps. 2+ Decfsion making 3: Repetetion. Sequence th steps :- Executing Every line ob the. statement ustthout ignoring any ‘Sethe Statements such ype. Os Pygong is Sequence. & Steps. Decision Making : - Evewy time Seauence ob Piging #5 rot Suitable, thot time we use the Condition Statements tn this Pigg based on the Gonelition some statements will be Executed Sere statement «ill be ignored. Repetition». Exeusting the Statements enore than one time ts called as Repetition. Thoda +0 implement the Repetitions we have _Tteations Concept loopings) Applications te C- language :- %* C75 used 40 develope System slur apps like tantt, windows, Linux, Compile designings -- + ete. * Tt ato used in development ob any apps deo's Ike Commercial proolucts % TE tS aed ir development gy Embecleled & mobile. apps -* Gosrtog ~hamewoih ode abo unttten sig c Aang. « Direct x D Cope nom Leomponent /pistvibuted component. object: model] ve++ KIRAN SIR > Now WITH on Santash Technologies c Cell: 9246392345 * C lang. much Supports geod Antetaction with Huo. By using clang. we com develope anothes prgmng Long's alto Like pH, mice Sobt . Foundation classes, database pigmng - ~~~ Ete How to write a C~ progam :- AiphabebEa=,2-3 C-chosacter Seti. A Cocharser consist o& alphabets [ lowed uppes], cligits [0-9] Special symbols . Tokens:- 4 Token is an small unit o& a pigm, Token Consist to ident fers, key ~ words constants, vasiales, datatypes , operates, & special Symbols. Tdentifiers', A name which is given HA variables , constants snacrs-~--- ete 1 called ag Tolentifiers Luser detined]. [cave -m sensi] Keywords Kegwrorcly aye the reserved worl: m which the meaning heaely cletine) by the Compiler. All the Reyworels hasty unite 11 lower cose. According to the ANSI © we have 32 Keywords» accorcling to KOR we have bt key worl >- for, do, tnt, goto. enum ~ --- Ete, L traetty opp te tine aeenti tens] .Numerical constants: The nlumetfcal constans axe the numbatype. Thue ae atype . 1s Thteger constants a+ Real constank.
least Ollnniyg pte sit 10000 000 = ~18 & Proof There s No eM Value binangcosle tn the System. ost EEEEE TENET LE] PPel PP PIs FFP ET Sy pepe eas esblsld SEL 52468 -b 32367 = 65536 -fe byt Tes Range 78 / Sas 782563 Lh Tateges Cosegery. we con ajo have octal numbers amd Hexadecimal no's . Fe Octol nes will be Indicated by prebia with "O” SB 9456 5 Octo numba [ oe .e Fhn.s7The Hexadectnal nds will be prebix with ‘ox’ OWIS=16 => 044% Aw, 14g. 12-©13-D. IG-E, IS-F &]i- 0x45, oxedt » OX8qa. Here, Alphabets are aot Case— Sensitive. Real Constants : 7 This teal constants ave ao fractional decmal point no's. it com be BHM by default ik ts @Xe. &ji- 45-924, —l00+09., get EE, Exponent pat The min- vange ob Yeal constamls *s 34% B® to 3.4 412% EEE F5U Floating Point Standard :- Cy xe nae Single precision C bias = 124), bebbER bebe bl ble lsb lb l=[ Fle ELE] Sign [—Expoent —>] <— traction > Character Constants :- A ches -cnsint ts a L byte ob charepy a keyboard Everything is treakedoga chad. The chor's hoy 4 Enclose in Single Gutrotations (* 7) « KIRAN SIR The Range. had. b- NOW WITH ce ee Bea ee Santosh Technologies real Celi: 9246392345 Ba Alay tals ele ete, Tt TE 1S & Combination ey char's then Tk fs called ag String Constant. Sting constoonts aie abwways Enclosed Yo double Quotations c “J. Eg Anusha’, “Nlani agi". ste Naviables:- 4 name which te gtven for any 23 Nosfoble lemme. Te purgase ots the. unlablel-te Store Somme’ dada: The ise wil afer by the Vortable name & the comptles will acces by the address. Rules “ter leclaring 2 Variables !- Crave stn dai] - The Vastable came com be lower cares uppes case and mixed case- Seer aS REESE Teese EES OTa computes memey location 7 led ® DN wephle nn...spuult CSdentie) Mango Apple Banana (Vadialle) Cconsianty (Mace) Datatypes t- datatype dacvibe eahat “type cb dato, we con Stove in a Vadiable! A type WwW Tr aly allocaty Some bytes ctr Memory -fer the variables Datatypes ade clayified tn 3 cotegeovies. Ie primary Dasatypes Cpaimitive) ( precebined SC Basted KIRAN SIR 2+ Desived Dosatypes. NOW WITH ‘ 3 Werdebined, Datatypes CSeconday). Santosh et primary Dodotypes 3 Cell: 9245 ; This primary dodaiyes are the datatypes dveckty fntoracted eth the machine nstruetions. every prtmay dasatypes will Supponts ” Type modifiens!, ‘The Typermodifiers will atte, the meaning et datatypes: Tae ade 4 types o& Types 1+ Signed 2+ Shot Bs unsigned 4. lo Crese ale nothing bud @ Keyurorel “Janu CPF only "a cme when we debined Sgred type modifier you are, felling 40-the. compile, the higher ovale. bie hog-to tntenupt by the Sign . whenever Sgned is Spectfied a sign lag Ts gensated - Hye 5 Bia 1 5 pre Ove 17 if the Signed bit tS gaw, kis BY no, # its “Fes SEno., The shor long indicaxes the bytes vb memory “the Shovt- 15 bey bytes & the. Jong 7s more byte. TZ. tat Cntegey) CSigned int) CSigned) cshost? formas Spectftcations 2 oot a thd — teary sige + abyte C6 bis) Range. 8 ~~ 32.163 to 32 t64 Desevipion —-§ Tt accepts the. nos oh decimal type - Lt canbe. BHO". €g> Bbe WNW, ~24 1 A6Z1I~ ~~~ EFC-Onsigned int: format Specificasionss ole %. 3 a bytes Cié br) Rome 8 040 66.436 Description 3 Ft will accept only the Tolege ob BX mls. Sige &9 $ B6U, 4964, SUB U---- Etc. Macs: 3 Qint_ Max. OinT—MIN- INT aa onsigned 154 chr Spe gs 2 2 1S 1$ 8 ye B3.7 ¢ ITEM TT) CGE REE LC LELE Nee ofa tS AFG? FaprP Pa eae a eee P 3164 ~~ R163 + 2B + 32764 2 65S be » Nokes> Externally the nds ane diff. bud Antetnally the binary cocles ate Same. Long nt 2- Clong’) Format Spectfications? fe ti A oe dd. Sige 104 bytes C32 bis) Range tala 43 64S YO a IAT ac HF Description 2 tk alin accept tnteget “type OF claia with more range. &g 3 B62, 74674, —64 Ug2 2 --- ENC.Onsigned long : - ova) Specifications § — yodu. Sige 2 A byte Coz bis) faye tO 4 DAG WT JAS Duciption $ Fé accept more yange - GY nds. &3 ¢ Bb Lu, 467 Le, 79634 Lu--- Ete Maco, § ULONG _ Max . OLONG — min, Choa Csgned char) :- formas Speciticcdtions, oft stage 3 dhyte Cabin) Range $ bg 10129 ee eee i keyboawl actey a char. enycha my Mabel description, ENery key in the key 719 single eLtotociony (9). eq + OW Wt ‘91 '3' @! ---- etc. maces CHAR —Max. Shoe oun. KIRAN SIR Now wit unsigned chad » Santosh Technologies fornat spect fications: oe Cell: 9246392345 Sac % byte Cabits Range * Oto aay / ne $ By this Unsigned chor we can accept Some &270 yonge a chay's . Description fg s Ane d-- etc. macs ¢ UCHAR max UcHAR — MIN Note? All The above macs wi Ml Float: -formad Specification: oo? B se d 4 siae t & byte, Cee bits) $e xe 1FF to F461 5 i decimal ptt Descviption $ Tt accepts Fractional point & aes eee Saal a ding &g £U65s use BR936360F BY, S706 eB ug, ae eS ee 1} be debined Hromthe Headley fle alimisehs Rangedouble 2 - formas Specifications ofo RF Sige 2 8 byte Cea bth) Range $b X1S to 1 HEHE Descriptions Tt ako Store: the fractional polnt alr nds whth 12. decimal points, & 236+ WsuT 321297687, -~--- - Etc Macs 3 DBL max KIRAN SIR TH Pa oe MIN Santosh Technologies ong louble : ~ Cell: 9246392345 format Specification; oo LF & of Lt Size 3 to bytes C80 bits) Range ~ 34 410 te gnc 10 Descriptions ©th fractional point accepls apto 17 decimal points. 4 £ Dye Bu4s677 112 38qsUr LE, ~~ -- SHC. Macros LOBL — MAX Loa — MIN. fe h Note: The above. macios are debined the undeh the heada file
Int: Froally 29 Colang, only 2 cakgeonss vie datartyps 5 Integers § wlons Tole Stace , cha's toteinelly pana the ASCH cole. which 15 integd 4y Peo i yey Notez- Tn all the dada types the only snteg unill Change the Siae clepeoy on the bre Mp. ETE ts 16 bib Th ts abyt if PETS 32 BE TER bey Declaration and Initaligaton st Varia bleg t Syptan. $= s
aqueresigne daiatyes Vorname =
3 Getaurchio sh — HD We have 4 Stomge classes 8 dataseuence from the RAM ; th that 4 “type 15 used to Select 4 Stage. class . Defaultly we take “aut! Siac <1 rates abut chert Alona bu dehautky Shave.@®© float Ky / 41s Vasialole o type. float © chars, ee = => th ayb,cs i + tokens tnt cy © re 2245; . decoration astth Yoittalzgation > Tens © che wdio sta’; ° ® Floats = 4-893 Here TF we clidn't anote the float betore 's' then -br reading of Float we have wrote the Valke a Se ATH 3 othowtse % treated os cloulle. * Thr as s00% s00/a00 3 //valtd 6 FEHF | yaa tatotatela ere KIRAN SIR wi | Santosh Technolagies’ ae mae Cell: 9245392343 % Int for, If titsa Keyword // invalid & Int day // trvaltd // Voriable comb stark with nlumetc, *& Tot 1,285 // fovalid 1 90! not allowed. % Tok © M05 MI Spaces not allowed. % Float e-nos Hf Special char's not allowed . Flavors dr c/ett Editors :- we have dif? types ob Editors & Every Editor hos Fts cwon Compr! the C_ campileys ave, ‘TORBO c Qvick c Microsort ¢ AzTECH ¢ ZORTECH C Lattice c WATCoM © GREEN LEAFC NITAMING ~-- tC, Every comptley hos Hs ovo editors called ax TD ELInbgratedt Development Evin] ZPE contains : i-e at palms & Jobs. te Editor © Typtng / Editing]. lexs. Some ofinstallation ob Windows-4 and Higher Versions o& TORBO-ci- \ Turbo-c editor 2s developed under pup Bos6 (ikbit> Windows—F 64 bit :- Select Texboc 3:05---> Turboc+ Exe & Insta, windows -4 32 bit: x first Copy the sito tn any 2 Ihe Cor D or € chrive.[-fa source path] * Open the folder & select Installer . % press Enter, KIRAN SIR X Enter the Source drive to use: E NOW WITH X press Entes Santosh Technologies Patna Cell: 9246392345 Windows xp :- Turbo CHt V3: Setup —> Runt Then automatically Tnstalled) « How 40 write a C—pgms- fgorims -tlow charts Prgring fas bs Me tn L End —— "Ny Mend metas The Paging tang. will be executed from the stmt a main(). The maine) Scope Contoins Sek oF Simts+ The maint» will Execute the prym, Tn the Maine) Soope 2 blocks canbe takes place. 1+ Declaxation block & Exeaukon block The Declatertion bleck we declare the variates once the declatation ts fintsh we have tne Btecutable simks. lo Statements :- evey pgmng lang. contatns lo stmts+ This Stmk 1s usted to aaphure the claia trom the tlp device called ag Key boasa and display the clp onthe screen by using Olp stmts. Ty clang the zlo Sims are clagitied tn 2 categerices formated Zio &Thpat Output formatted lo unformatted rd Datatype] Zoput [output Foput output TInt —fscanéey [printf #loat — fseante> | printte) Chas, fscaméey [pinetey Strteg [ecantey fpnatte prink-tC Oi Sypten dt pyinbt Cuse—defined stitag') 5 The fist Syntax ds the pitnet() Ys used to display -the use) clebined strmis en the scien. The Frist syntax ety print) contains only one engument with In the clouble auoies¢" 7). whatever the stmis we are debining 7 ts collection ot characters. Main ¢) patnttc" welcome To c'D3 4 otter, earthing the pagm, the pign bas to compile & Execute. for Compilation press “ALTA. To wn the pgm “cree ry’, Fq only fe Wroxing . Clesex€>; i makes ~b cleat the screen bekne Exeustion vt the pigm we use. AFC cleattag the Screen 7 mares the Ctosor te Link In First row fist colonn. “To see the op on the screen press * ALTE ES” Cit works only in Taxéoc). In the above. Pq the olp not in the dea oidei-p make “the olp in bette coy OF Res, ‘Cc supposes Escape Seauences . Escape Sequences: | Horde to design the olp Tha prebmmatted Texts we uye Exape Seuences 9 C~lang. The Facape Sequencey mostty will be Weck Pathe ole simk emeudn50 they ate called 08 “Bounclartes' or “delfmetess’ “\n Loewline chasactei] t- Te makes the Censor jo tak tn “the nexe line . Maine) printt {'weleeme 40 <\n IPE + wwelcomme-to ¢ pitot ec! re 15 porstn")s eal HPO" evel \n re Is%3 seelipone roe. ‘pito weltometo c\n Te ts pop's"); Eis pops pintec" 7 . Twiinta a toeleome To xR W")s foxx weleame To Cae 5 "\t" [Tab]t- Thetab ill makesto move ‘frame by shame not by chas's. Mosnc? 4 paint Caza), piott Cia34\e 5")- pioth clas4yte\te"y; Sus cuncoras neat frame 77-56 achar's chavs KIRAN SIR 5 NOW WITH , Santosh Technologies 3 Cell: 9246392345 tase ous + “\b" LBackspang):— Te Gockspace. will be uad tn development. possuodd logics. Moin i ‘ ote [2.35678 print C'ng4.\b 563g"); jagase7g printed aay metals (2.38878 Bptott Casaib \bseg "0 prtncec! 234 bg é48) 3 Ae asker. - The Backspace move back One position.eae a0 Maint dlp: t ab- cag? printé ¢'\nab'y; ast u A prtotec' wbsitye hat priote Cy halt); a By using peer ets Possible fo disply any char on the screen. 1# any chai not displaying use the BackSlech & followed the char it ctisplay that chars, * — Maine> 1 chisexed: lp: weleome to "c"; PFC" welcome to Voy" "25 4 7 Fisse we aegetiing Eroy boa tompilerdondé undoes while ete | PECTS ole \\\ Uenosmce atte colette Ld eavleanoti] a POND: ope se wematnialy Space, ie: pe NWN 3 wn FPFO WI, op. y pe Cetsa Procedine Oriented Prgmnng & function oriented": Ps whenever we break the stmt we the '\' AR Indication ab the simb-islontiny \n —pNewline cha, \t > dabcha \b —> backspace ee KIRAN SIR Vat NOW WITH v3) Santosh Technologies \0 ~> Null ch Cell: 9244392345 Va > alert Sound \F -> fom feed \h ~ Heligontal \W ~5 vetticak Opis Ctsa Procedewe, oriented prgmmngd Fa" Oricoked, Note:- Every exape Seauence is a chat ts 4 byte 0G memoy Space.* €g PAM i Maine) L " PPC Hello\n") PPC! welcomel\\Nin Santhosh”): PFC" welcome Will Santheds!y- Pec" welcame\bib Helter: JRAN SIR PEC wretame lolb Hell! + eH yi Now cnn ologies PPC" Hellen", Santosh reea23 45 PEC weleome \r Hello): Colo 2aaam PE C"Hello\t welcome") : & *& maine) L dp; escape\n chiserer; sequences, PF CHescape\\nn Seeiencer') : gechey: 4 Getchcs3- Suspend -fch a cohile, until the uses press any Key on the. keyboasd. The Achiol purpose getcht> fun -to Captite nlondlada keys. etches 78 cuafting $8.24 chat type tip, by using getche) 79 the source cecte then we need Motte we cohenertes the com piles ead the getthO) stne Tt maker the, pig to AT+PA “to ge the olp abies compilation by wiinggtcrey we will acca, date Rey (H-2/0-9, e+) Balyo non clade CF Ae. see Hype cowsn)) Keys by wing gerchett) weonly vead datarkiy. geichec) Yead boty aasin L Alondata Koy. wud getehe ic hetteh, 3 End ots the Line , Comments: whenever Ff you want-te provide a elocumentation -foy the Prgm we Can urrite the clocsuentation by placing in cmacks. whatee, the Stmls we place incrmoly Tey will be Yynored by the compile, They ate types ve Gnnts.print#O-Syntort -22— probe Cuserdefned siuts uth -lomnat Spectfieation’ ad. aye, --- ay; Tre FAsyntax a the pFO used to clisplay ang type ole ap on the Console Sren The ang's can be acceptecl My Nol, entth format Spectfreations , ‘The ag's can be vatiable ype, constant o's & expreyions, x printe Cena Bitkd", 10,20) 5 x, 320" Ol AL 10 Biz FE ate 4g collection wb chars. x PPC heb "Jo26)- “1020” eP!. jp20 % PE CL «led 100, 7 2 KI ete) RAN SIR 100, 5° a na . NOW wita rae Santosh Technologies % PEC A shd", 100,200,200)! Cell: 92415392345 21P: 100 200 PPC afd eld ded 4 10,20): pp! 10.80 Vv x Maine) i clssere; pectags'- pela 4 32. PEC Mack" 243): PEC\na¢y = Hegth 243)5, 5 geche ; “Sx prexion ‘ Scan? 0) i- Seal) % a tip fam eobich can capture any “ype. a dake frorn the Key- ~booid. we cam accept tips -for the vastonles ta 2 ways |" abthe Hime do- Vodiable cleclaration & Initial gottion, intas-y asbySyntaxs> Scant (tomat: Specifaations!, Sagi, Raga, ---.- Sayn); The Sante) ob the 45¢ax9 % wPHhIn the only contasag, tormak Speci firatiy, Rematring OS ob any coioyype must be clebine with @ incl tater actes (eV H) | The cogs must be Varfable type only « % Write a prgm +0 accept g nds find the sum t& ands? “To wnite « phym'bvicthings ve bate Maing > anole fs, 1. 1 veclesation.. _. Banas Don nk £m, sum ; B= Typed’ Pty Cnt efleal -— J 4 logic. chscrt>: MU Zopak, PEC Ente the values 1") KIRAN SIR SPC" shel diem BO); Sa with ea ntosh, Technologie I) log: Celi; 92433993 S sur = dem; 45 A output Olp:. Enter the values 39 24 PL Clumoe- ands + +h", sum). 6a a x va geiche: ‘umdb- & no's “AB. ve Lanigomens obeys dane with Right leh. Float ~ Fleas t-float that = Pe ttload =. Hipbes ones bytes cil! dominate. frvaltd = chet echay Tracing tr the pigm:. sa A pigm can be Fiate Wne-by line +0 understand more clearly by pressing Ra, when we tracing the pigm we aun untch the variable; values by “eld watch” Centrl+ Fa). it the Add watch not Visible then press” Fe, tfoedt!. O)p is stricted tov 2 decimal poinis . %- Int = Int tint | wooks fer only nds ,Maing? cS t ‘TInt a3 32169 Fleos-#; 82168 - 000000 83 32468 a pieeuaiae raed ints Teer Ig t Pe seb Re a2 16h Hoty . a tL Ss = aaeTtl: | Pe a2w7.04; PS" SE. oooe00 ose chet a.) a" S= 2 61S415 PPC lab obP obLd ya, %) 533 eo oaee anes KIRAN SIR Sant hte WITH Osh Technologi Cell: 92457292245" Pre-clefired Headey Hes + = stdfosh > Fie Toflision mace WV heacden foldername . 7 Preprocessoy divectd (tp. substihute, pam cok). caheneves TF we ade using predefined fur's tn the pigm we have 10 debine that ‘elated heads Fle ithe Pigm by sing “aptnclude” pye processor elisective + This APinduck tay makes the fie contents tb be added inthe Pym. what Ever the simts Starts with =HE They aie called a5 preprcessos divectiver- The Job th the preprossos dinctie 7s to Substitute the pigm code . | plactng the heade les 15 optional inthe’ oC’, but It 1s mandatory 3n = CPP. LBetterto place io ny Jonguoge ‘| Lin e76is optional beoa cis lesely checker bict crtis Sty checta), Debugging the prograr :- Whenever a prgm 7s take in place, a pgm bas to debug when debugging is taken, place thegeone atte types so Erion will occurs. Differences bho Exrors, Bugs & unamings ¢- Essors- Tet nothing but mistakes nthe prying Language Tree Grans ade Sxtypes, I~ Syntax Exors a logical Evioxs 3+ Rusttme & Execution Exroys . 1 Syntax Exvoxs !- Syntaa means the correct way & “grammar” Sb writing acmd, & Sais ot cml , inclucltng all the. propes options & command Bine stmis. Whenves Hf we not fellow the rules ab- the Pring dangls this Syntax Srrrs will be mitced. Thre conn oS2. logical Enors: Semantics meant the legical meaning ob a. Stmnt » Sepalate from the Grammatical Structure. The logical mistakes will not felentiical by the System, Bs purely mistake by the Usa. Ea fay Calculating the Met Salary ob an Employee the formula 7, Net Salary = Base Salary + Allowances GQ) Pedlections, But though oversight, Net Sadory > Baste Satay + Allowances G} Deductions 3. Runtime Errors [ Erection Errors): nln whenever the use pax urong tps ag values, this un time Errors will occors. when suntime Errors is Occur the compile, alll take the control & Yaises a preclebine Swot mags « This type ce concepts Called ag Error harelling. [eclcitt Sapo Sesption bag) €9: divided po. with gero, Aincling the Sz-ro0te HR OM nds - --- ee) Thete ts a chances she “Linker Crrets” can be takegplace Bugs?- Buy usll be totes place abtes the erwors #s_ comp! ill be, volsed by the Testig team. So. Big? sciff- when we Compile with Ervers Warnings :- wohen€ves if you dame the simi, the simt eloesn't having any eneaning OF that times wednings will be yaise, 48 @- 7n place 06 = Sum=atb; ¥ we unitten a3 Code has No etbect + letecl . This Bugs Th rWise5 a warning Enteral Sxecution ob C-program + - ‘The Tnteinal Execution we C~prgm will takegplace on 4 Stages. Text Progiam: The 45 stage o& the C~pigm Ys the text pigm Je Contains not only’sc! pram. Tt contains prectebined ‘et’ filer, User debined & Supporting les.
You might also like
Find The Output - C Programming
PDF
No ratings yet
Find The Output - C Programming
45 pages
C++ Reference Card 2002 by Greg Book
PDF
No ratings yet
C++ Reference Card 2002 by Greg Book
2 pages
Balu Sir New C PDF
PDF
No ratings yet
Balu Sir New C PDF
450 pages
C++ Infosystems 2
PDF
No ratings yet
C++ Infosystems 2
303 pages
Structures and Union in C Programming
PDF
100% (1)
Structures and Union in C Programming
84 pages
C Programming Unit I Notes
PDF
100% (1)
C Programming Unit I Notes
42 pages
CMP 101 Set 14 Programming in C
PDF
No ratings yet
CMP 101 Set 14 Programming in C
16 pages
DS Lab Manual
PDF
No ratings yet
DS Lab Manual
76 pages
Adsa Lab Manual
PDF
No ratings yet
Adsa Lab Manual
52 pages
CC4E - C Programming For Everybody
PDF
No ratings yet
CC4E - C Programming For Everybody
1 page
Searching Algorithm: Binary Search
PDF
No ratings yet
Searching Algorithm: Binary Search
14 pages
12 Computer Science Notes CH03 Data File Handling
PDF
No ratings yet
12 Computer Science Notes CH03 Data File Handling
10 pages
1.C Programming Question and Answer - PDF 1
PDF
No ratings yet
1.C Programming Question and Answer - PDF 1
18 pages
PF Lab Manual
PDF
No ratings yet
PF Lab Manual
72 pages
C++ Chapter 01 - Introduction
PDF
100% (1)
C++ Chapter 01 - Introduction
23 pages
C++ Overview: Object-Oriented Programming
PDF
100% (1)
C++ Overview: Object-Oriented Programming
179 pages
DSA BCA 2nd SEM 2025
PDF
No ratings yet
DSA BCA 2nd SEM 2025
25 pages
Compiling Codeblocks
PDF
No ratings yet
Compiling Codeblocks
13 pages
Chapter 11 - Templates: 2003 Prentice Hall, Inc. All Rights Reserved
PDF
No ratings yet
Chapter 11 - Templates: 2003 Prentice Hall, Inc. All Rights Reserved
26 pages
Dsa Handwriting Notes
PDF
No ratings yet
Dsa Handwriting Notes
8 pages
C++ Quick Reference / C++ Cheatsheet: Preprocessor
PDF
No ratings yet
C++ Quick Reference / C++ Cheatsheet: Preprocessor
9 pages
OOP in C++
PDF
88% (8)
OOP in C++
23 pages
Programming and Problem Solving Using C' Lecture Notes by N S Kumar
PDF
No ratings yet
Programming and Problem Solving Using C' Lecture Notes by N S Kumar
6 pages
Structure: A Structure Is A Group of Data Items of Different Data Types Held Together in A Single Unit
PDF
No ratings yet
Structure: A Structure Is A Group of Data Items of Different Data Types Held Together in A Single Unit
32 pages
C Programming Arrays
PDF
No ratings yet
C Programming Arrays
34 pages
BCA I Year C Notes
PDF
No ratings yet
BCA I Year C Notes
36 pages
OOPs in C++ UNIT-I
PDF
No ratings yet
OOPs in C++ UNIT-I
135 pages
Summary of STL Algorithms
PDF
No ratings yet
Summary of STL Algorithms
2 pages
C Program To Implement Evaluation of Postfix Expression Using Stack
PDF
0% (1)
C Program To Implement Evaluation of Postfix Expression Using Stack
2 pages
String in C Language
PDF
100% (1)
String in C Language
27 pages
C++ Programming
PDF
No ratings yet
C++ Programming
241 pages
Lab Manual For C-Programming
PDF
100% (1)
Lab Manual For C-Programming
49 pages
2022 - DS Lab Manual
PDF
No ratings yet
2022 - DS Lab Manual
54 pages
2-1 OOP-Through C++ R19
PDF
No ratings yet
2-1 OOP-Through C++ R19
105 pages
Chapter - 4 Arrays and Strings
PDF
No ratings yet
Chapter - 4 Arrays and Strings
40 pages
Lecture 1. H.intro
PDF
No ratings yet
Lecture 1. H.intro
16 pages
Programming in C
PDF
No ratings yet
Programming in C
5 pages
CFP Unit5 2024-25
PDF
No ratings yet
CFP Unit5 2024-25
46 pages
C Notes
PDF
100% (1)
C Notes
158 pages
C Lab Assignment 1
PDF
No ratings yet
C Lab Assignment 1
10 pages
C++ Notes PDF Complete Object Oriented Programming
PDF
100% (1)
C++ Notes PDF Complete Object Oriented Programming
82 pages
CS255 Data Structure Lab Manual
PDF
No ratings yet
CS255 Data Structure Lab Manual
29 pages
Lec 4 Condition
PDF
No ratings yet
Lec 4 Condition
42 pages
Shivangi Srivastava
PDF
No ratings yet
Shivangi Srivastava
15 pages
STL PDF
PDF
No ratings yet
STL PDF
22 pages
Balaguruswamy
PDF
50% (2)
Balaguruswamy
34 pages
Structured Programming Approach
PDF
No ratings yet
Structured Programming Approach
1 page
Event Brochure
PDF
No ratings yet
Event Brochure
19 pages
DBMS Introduction
PDF
100% (1)
DBMS Introduction
11 pages
PSP Unit 3 Arrays and Strings
PDF
No ratings yet
PSP Unit 3 Arrays and Strings
26 pages
C++ Quick Guide
PDF
100% (1)
C++ Quick Guide
98 pages
Compiler Design Laboratory I
PDF
No ratings yet
Compiler Design Laboratory I
6 pages
Kiran Sir (C Notes)
PDF
No ratings yet
Kiran Sir (C Notes)
198 pages
Kiran Sir C Notes PDF
PDF
No ratings yet
Kiran Sir C Notes PDF
198 pages
C Notes PDF
PDF
No ratings yet
C Notes PDF
198 pages
Balu Sir New (C) - 2-450
PDF
No ratings yet
Balu Sir New (C) - 2-450
449 pages
Balu Sir New C
PDF
No ratings yet
Balu Sir New C
450 pages
New C BALU
PDF
No ratings yet
New C BALU
214 pages
Chapter 2
PDF
No ratings yet
Chapter 2
20 pages
Kiran Sir C Notes PDF
PDF
No ratings yet
Kiran Sir C Notes PDF
198 pages
3 Quotation
PDF
No ratings yet
3 Quotation
1 page
Pump Efficiency
PDF
No ratings yet
Pump Efficiency
7 pages
031221ER20570060
PDF
No ratings yet
031221ER20570060
2 pages
I-100 Hydraulic
PDF
No ratings yet
I-100 Hydraulic
407 pages
SDP Services Limited: MT-102-HP Trailer-Mounted Fracturing Blender Unit
PDF
No ratings yet
SDP Services Limited: MT-102-HP Trailer-Mounted Fracturing Blender Unit
126 pages