0% found this document useful (0 votes)
41 views

C Programming Notes (Unit-1234A) First Sem

Uploaded by

tempoterrace2306
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
0% found this document useful (0 votes)
41 views

C Programming Notes (Unit-1234A) First Sem

Uploaded by

tempoterrace2306
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
You are on page 1/ 86
Unit 4 Ta ae SRS eo oreo er a “ified al fg ployee Ee ihe Basic oO! nisa fron of 3 computor A =e whe fs an_ ee ae ae f ea per Zoums iS mapos oe ry dob ox eateere ih eas dis dada { pict ng siah and. is Codull } ’ ; pw. Pa d into fhe computoy at ann ‘and _insewen fion_ can be entered ky | ptf pst wt dotteh such yt ic ae stanne ete. Nofe Hoot sla binany dans “ages which foe hyn f,/s (011) So. we ie ae Sin pte conver] nb. ae fodes Fascty “9 Tis hep Hoc a (he iets eae : A com putt fas 100 gps off sloxoge-_ ave, 51 is abi Lowen ad the main aes se el eal - | ef { sevens | — get tase Hones. ie ‘cabana Pie wed wa UC Ku Ea ae linia ee et" pointe ee (ae ny ieee Bees PS tongs a this i. _ 4} ¢ ifra imony , Te has eycom cA Perot Ue! ee Wie _ of the the_p voip show axed. TH is cheape yy fon 7 well Te “td wscof pa pormanenit ty Shox® dala and — naga mes, An os jet ton Long she iS mognehic aise rhs Hasof aj sleep ae a cessing ¢ The - Hm ° yi e, instuze Mona « the user is led PHocerbling « Dake aa Ex i ingfwictions ate faken stom, the” pele L reernoti and Feared fo the Jacu to be t pergoums all caleulations . when the ag E | completes , the Kiral wad ie then t3 pats "the main eae ob ae eA, ite if to the — central mera ~ ie Con u the ithe - mn» T. ‘Coleaiel . trols the mannot_tn- which, be executer! and « pumber system [higits > 0 and L “ar Au some cha) Sol = | xo X2 +0x2! PO) - ag Paria ncn ce 8 a CRRA SE! incl ihisaeieestestnes 4 ae — Pee St Na 6x16 + F ee Se : =e \ — hie 1 AMO) Qeany 9 - oe Seo iroie) % 0.909 fle fot wel og i x aw a YO, 0-8/2) of cls) Ma | o-d/n) (Alelloioy 1) [>é/s) a rT | | ] i hs ‘ Re afignip B adnt— hit a re Lol Tse Asolo Magoo” §=6_ Ot | of} goto ‘joool! | 5 | Date: 7 \ | on } — ince == aoa Bc | loll - lolto ee eS gillo] Od00 [o110 oo tae Oeovooy ere ee ololtoo 7 ee Pa a , oo] {-[-O—_-- — Numbex pepstatin in Compubey a © Pasifive ‘Numbox e - i: _ byte a t es), Gun} — 2 byle a tit) Ls 4 bye ( ess it) @_Negahive Numbeus == Tee complement: =4,- 3, -2 + —Ostl,+ 2,93) —Troro.itio), = Oo 2 gS Plata ee xo! +12 +1 + ox N Wy KP |S \\V\\) I> ie H1o = xo x - [x2 J+ = eee aa =0.97- Lolio. [ute ay (12a BN) i ul I] 5 | | ect : = 2x2 sixes Fx Slo ele tis- 543 & >e ot PEK IG-> té 13+ pee: HO. 8/25 4 0.059687 — = 0: BE FIRF po Gun DE); (S43, BEEIBFY,, oololooll. iit i a be hits oO 3 =e Se ee Vie i 1 TEEE_7S4 Floabing pain ae ft theda pal Ee : eas i ae, = (sem) Do uble, paecisten (4 Tet 7) pepuaienlTion s a kt bit ve || bit — s2 iF ——F ke “expen Prac hiopss a ree = Ha Wee | eo uve ae is Me ~~ Hepmecen aber, Ey -@R. nd the lecima fy humbey (L.s~ mieplater Be obi (Ging ler Je precision Fleabe 4 point sepesstnlin SoET Slept: wnvod He, gven numba we tb dinars gunn a= = > ——— | ~ ——. - =f OS X2 = 1 Oe | o 1 es 2 0-0 O a a ma Repuanent elgg Eeoss 2 Repererst I [#254] ee: S fou _yo numb (126 be (24) eps otN2+t sO) 4/2 E— Actual taponent t 124 Ane 0 : ca wpe | page NO- } { Bi e7 OQ) Repyorent the all rumboy(1S4S)— us Tee. 4xy_32 bit Coimale Tee Rize “Sigh: Convent fe given humbey inte a ee equvafents. ‘ | 2 ae a if pable- — aoe re et get 2} ip | a ea CO Sep 2: Fit. the be “numbey into Phe. | ats enewa fe | Sa NES EN Sos ncttial eypanenf -—} Ser [oioje2? | Wok I rol g 5? hi, aos fx [-Joliiito) x2 | : a AT base 78 2 N= (foro? v3 2 pie 3: is OE ie gegeed fumed ee aa Ee lbitde- guned 23 bf¢- — |} | ©O/19909910 | {0444491 0000cre0e0%000 Exponent Lua chron pe b= Ac exponunt—¢ [2% pees a / number [16.AE) bey [16.AE) AE). ne p L tain r iF aera i k ‘ of The 91 numbey in eR bina 2 pena oe Bat No IGA — et ce heraalecimal chipit doable. a { pevooy ¢-—7 otto a jolO E10 aa - = _Lovslotiale ofo tl o) a / exponent fusctical past biol Ce) ms CA} By onpoiig Span S=0 _Achsl tafonent=y F=ollol oniio es Actual exponent (0%. 3 | | | I | ti | I i i i IT r elie ey bir = me, oly c = 3848 0 (Con Stig Ze ) NaN Nol a mat { Fon stoning NaN) numby Gite anus) peg 1022 + (003 i —10ozl (022 ~ 5 a—l9204 ]o92 = 2 ite 1 1 a t i rere) 05.9 2 go. 4 fey POR Ssiagy } t nly = 2ou6 4 OSH2X2 = TY24 9 otuouxe = IRE LT T¢ 2+ Lit the satu lfand binosy numbey inks Te eee = it NeCiyx Py 2" ae) a no oe ry -0[o0000|k2~ * N fr Oates Ores | {vege te int” fo “Mihng i pre blem, 1 qi! ean ep fective. _pwocecduye ) blem io a tile Purch yy abgersith, E ds a well defined a 4 ane im a () Ge puecise- ee eee ee Ing fxactio P Geter 7 oy : poueRe 7 | ——— (vese® ; ipa pd Keg featuncs of Al Algosuthm ee Rec ta. eget flit? three At ea bund namely ents ate used es te oeerA 7 pends | oneal ; a if nay inde © “Edun” Hene the poowel fun a fhe Fe statement Con be ley aA ooo hen sented, ta ie slafement can ales be, sholeof iy he | : ane, oe Rei 1 , whied “tnvelee seats / pets sept fe s_numbit of fin J, Shae — pdatements a. cp’ temp mon 7 a? ue “The, ecufe! ont—ns ehgpt—unli/ 2—alplin fe final’ thy (Date: gers MES hae fe Swap phe volues ih fa Stepl > START. f——__iSt&p 2° That foul tambon ad ante Eee S, cH “S " Numbuy as Pe Eee Sisp U2 “seh G=Be -——_—_Stps: s tag See Steet i so = Steph 2 ENR Se fo 4) hhite an alposu thm fh cuiap fle Vals 66 _ yoo variety) si Hhowct = thixof Vasa a Step]: START Stepo :- Ty faut Numb as ny : Tnput “setend humbet A Step Y ¢ n,i= PBs. ee s Po a Muha an —sfpilAm & fi RVEN OX acl fad wh then op © START. + get N= sum = iS Si sep So int Sums i ee a oe oo | ate ede 1? START 7 = tere ich aenae ss Shep $1 Rupea spsas hile- 7<10 siepilt cum = sum +2 = scefi DaeTol | - ks wint “Gum” ——— Step Ft EN). A pas pe is symbolic - a ce is bint when denign low ch = | eto a Pee The Symbels “p-4 “blocchant- “Incledes~ (D_ Skex¥ and teal yeh Oe Sfas? and nef _ Syrolal ane Peeaind the ps ferminas (i sped aD wounded fet a ene Syrmbo[/ @ Arsiows s Arwiows webent the Plow of. conte | of the ne sgxamn pee: the exact fepnadc in Oe oohied the instructs ee stecal ad = Eas: Bi sg ap te step axe. alo an achvild » is senwesenfeo/ em a sectangle -Achvifies ek de. | are such ab add a fob, save, pp sana mM ang pet mae is 0M the an se ings fin te a [ his symbol jc t Gamend, Tt is bebiaih condshon, Ha ciucley in complexe o% maf fi Pe 3 aoe oo a sbsente Senay eh Ta at f PD a Flomchaal adelition off b° numb | os faikest Gait 6: Ts Ace two. _vasu'ab/es Tn put himbey ab hy Ltnpet second numbet ab Ny. my = N+ Ne at np = 0; -Ms_. seh N= A hs Cees int “the value o; i and n, aktey Susappi » ast fox find gam fit et ieeientnlge Ay Doma g feted find phe 20 fit Se cahaead tneerbvd hing hile fey lo “4 © ee pwehaxT @ queatesl of | two- a : LE on E numba ash, - ee numbey ad Az Ae Punt “rn, is 7 gnetet= vA number os Oy cond) mime ob ke -— ae a ee ee x : Popa a numbey as D. 3% sé# G0 era: Repeat cep So while PCy sieeS: a ny7T= ew Way ak Cz sie ome ely 1 the wiring an guns clevelopeaf ae leet nett lad — i . of USAFE in 1972. oe was Pe “A ands, = —.touitlen. by @ man named Dennis: Ritchie, 8. Gettin ing. Pleated with lps in_feasining English, Iarquagest — — ae oe a AT torent isan ty phat doc nof- ase xan) serene Se td, 5 CUS rea £9 4 |S Real tonstarst— ro aes — chatiarteer sesalend 1 C constants ean be divider! jnt® p00 pra; eabyenitt i i fine _@ Primary conshants : [-c_consbants |» Date Lnek i he ealntis Leica Rae Phen eedax: Can aaa e , « chesiacte! ronstants . Tree typ of vassebles foot it can eT po lh it can Po . i pees 3 i—_____a_panhiulay tyre ef vawable can 4 Pe ge panes a the game type of = 2 —___Consfant “fin example — an_inksgey “vaxtakle, _ ae only an ot 2H coment, | a Ll geal yastitble! can 7 — only. a weal ———__towlant and a _choactet ‘variable eh cam Aol, a8 a chasac ter konatan ki oe | Example — Ped: nf des, = i= [Atv rameg | ace mMennoemy al fok bees, ef ta | dacaben, ‘ 2 3 fi mrneseeall| hn ee Py a | 6 coaclg vaiable, “names —_ A vasiable- phan iS an combination 6 Bias alphabets , digits eH _undes Fs cant a te pbaasiet in The vasuedle. name =r a oF unl 81M e 7 a blanks aw allow] < Gennes _pucvious shafement— but this is hot much_- 2 > ihe eiré is g bil (twice of int J re fon cong fs feuclnty loop if we | went fo come ‘suf then we use fois ‘sizeof > to fous AAG size | of an variable Ll slate —» fo we a cingle variable Got roulfiple Pisa g ccs, ct — seconday conslant + (Yo het feu hese). ede —> foc horet ony dtfine ce = Sed d int) . er Le unsigned —> te_incswase the value. of a A vaiele boint syemoviry Panes value {3 ait iy paifive « valees) wi ies we § olon't want i byig ~~. Tateleaur, L¢ _Trbtituofions a s. L Thete one basieal AR in: nsfrucfiens Lin papa | ae ts ao) Type Declxofion Pnsfuut tron, Astthmefie, Dhefruc tion ‘ Goat Tngfruchion 3 a Ty, 01 of- ; fom ihkac, A cnteal the. a diggount chodement “in” Chow ate 4 fy iprdof os In Crs lhty oe. — rylp ’ nofnue ctupion of mm or B)_Sequey le Loop con fie elton @. core corto] Irsfiuction | é sorta] Tnshusckion s The Sen inglnuchte mines Phat tu In the dame fa Ane the Banal in the ii. <(P..... 1. fie BOS ' mr Et any hor a sees Se i “eisbaay ae pal be = be beled Speci a eo er boty of if “sfabement Conditions a+b, eara ach) ayn 2 SFE ee etre peace ia aid ete cenlach uf ifems y ce shal offer e, fede priile. Pultten. = base if clades "he hh tee folaf et adie lp eae pe eee ahs ee Pie | (ita P bye ted ic, tik \n nr di = { 7 hw S005 da =| bax 98)/100 ; (8 =bs faa dos ah a pk a AnD oe ae OR on : se o0o-— 0 ee bp LG rk 2? 9 v z jroo tho) in BS _ Example — Cr | hi oan cans obliid by « sfediat in ie diets oe fab ox yok fo. 5 oe Quast Aivision : % bepadth, so ad a =Seiend division ; divislon ¢? put bee Hiatt nb OS pet fe pti EL" Entel maths of five. aiffesind subjels bane a ™ frnhern2 8m, erry I et sete ee a iw Rees ef are seeps Liat divton”) 5 Sy eer) go : a — [i Cow ree sa). pene * Second division) 5 =a “para 4088 pex<=49) : “painl ( Thind division”) ¢ Fetes Yo) a op peut (PH eS sefisin 0 a me Tl | | | afer are [eto oxe i ip A didetmie wh is ~ a Amt os ma in meinen neem oe een wn a i i eet any te ney ee et Cee + tect te gen _ Feline) alten wy el fi e [5 pot i a Ome EE (yey) a oT eed EC “+ 1S. poked than te Te; —— oy “toni ese lee = The. _ernclifional 0 endo? . cand gt ake Some — = — times. a called Letnany L ca deh. J Lah a | eke. aK a tn pss Hin, ¢ era t fe tl WS__eapaessiol [Pe 2p) section 2 eapaeson 2 { {} . What this apactton 64 le $t'S - an if stan CR A nn rr = — ty if Ante sitchen BAR a ee CAC Af © eepucssion [is cteuw tetn The vali: pe fas | (ill bee ex San 2. aiheqwsise: the_ waht — ~T efor will | —Ypetralen 5 Sia ainsi fae tee meee at mc cee = eet rane oe ~~ D Hite 6 jaguar fo find tha tno iia HE include © eldin Bebb pees fe le FE include < conioh» Ee a = wf ae , oN pie ~--——nf_ My C— . punk € fends fe00 j aT eabae e\ 0), Tete nie a pip ai pe a —& df. L —pocade —uelt un 0; neg ty} ee he else a cng -enple Wei & . 8 prajna, to ry, he suas iy -_ — LS number ee Wivd ell wip Vehewh (ach Rieke ‘: # inc nO | ciot majh ( ) | ( a ae AA ee eee ee ee nn ft, Ii ——-—intouy 2 pO ie ary 3 nambeo\ nn), “Seng ld td id pty te) a 1 FS 2! } __———"" po a ae hd puintf (“ vw von” ¢ — IE Aeice : sels 0% ; Ap a 7 f SP hyd fF eee eoen eee — ° flo i { auc by oh 3 mM wT hoods Z b w / we tT aoe ef a pak 0 ff apie eguaro » The (= SLL a a fot shafement—_ pa hile e Eee a fee hile SS ere enf~ | a a Ui 1 “Using A fet , efaferersts The. Bu sfale, tre _ i allow Ww fe pb 7; 2 things abet } / Pree em 4,-teep in a cing Le rm oO setting a lop count es fe. ar), medicf a _() fes indy the Lp. coun et etd? eset ine “ solve bbe ifs value fran _9teaes heof fhe hh tus vd feu nf 90 refi Hons _ cferitehe be) Tt MLAKGUQ Phe _ value. ef pe far oh oy time the, LO YILA WD __ Segre si > _the loc bor been’ Vexetuted in, a the af cnetal _ foun. of. for sleotement in ~ - _ SL FI below s 2 : * hye 7 | a - oo = ( _ fast ‘in itialyee, Ovfs Colun fey * conch fion f LNCHE me ~ of décsemen? o of loop cv courtey) ies T _ Sfe CG valid Slofements ee a i Example = Oo _ fe Whute a Pe yawn __fo_fin of the _ Kath aefowiat acne ot Ok a Ge Punt ee Fo hep 2. ule a a plaguow fad as 7 ryth ub oe tis _pHime OW of hol et fowl. twp, Wife _ o or — fo ph & tun ee ie big fen 7 ¢ eur caer oe dl —H bite oy Pepa ep te fhe. “levees of 2 ————— oe A se White Q_ pregsian nd fhe. _curo. of (oat apie 1 peafowl LPO eal ig (for Loop + en te a + NH inclesfe< steliou > a tt +t include <_ tonto: bh » a eS | Se tnt | main ( ) eee erent earner tui { " Enfes cot “the | ‘value, of. endn”); ed tang ("Ad") &n Safe fet a 57 - Se a a a ee — ——— ———+ ee eee i : peters _ Sea I? pu 7 Lin (o 1 ‘ ee : pint L-(“ The e legn of Ay Ft. fs ; of f-__. —{_ pot is td" on, sum) sho 0; pinta eee er peers rlampeslorhnci etree eee te 1) #F include Csidion hb te include { Canin Ay i ns ti ZT malin _ eh h fits ical ef NPI ——+ f- =A! cahs fopO | de fe = = Ls a4 a + (lev le) ne — re en rer re a ” Lil) Using a Loki. ile sf eo _Slafe femenft rae i baile ile 7er loop conden oo oor tht IE {con Aion | ee | meee fe ees = | Oe 2 1 i Tenant se ments —_ “. Eo (Inexement aos ase lop teal a ra al E let bea Beemple tal SG Kaur to the 7 a) whi le, Epp eeliel n es _ THinclude 2) oor ee ile Cle f , oy (orl) = value ef (415) = value af f pe : value velucs af (oce-+!) => valutr et [0 02-=f 2. a (B42) value at (p12) > welue arfealet2) a _ value af (tooota) => yalue af poop 3 - Bample 8 bee a pragnam fo poid_en_s 4 nfo a__Feure Hion. LN Sea (Example I+ Weaker & pro vata find fem, “ 1. ro elem niet taing ANE HONS ws Sp ORO Sees iS a \ gx Heincludes _ How 0 In [oT fi | ax ~ thay BI], Hoo | AiR] Lp i | aoe © fed es nn oe trikielize 2-A irs s

You might also like