0% found this document useful (0 votes)
10 views27 pages

Notesof C Language by Abhay Kumar Awasthi Till Recursion

This notes will helpful for C language

Uploaded by

sitarahind12
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)
10 views27 pages

Notesof C Language by Abhay Kumar Awasthi Till Recursion

This notes will helpful for C language

Uploaded by

sitarahind12
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/ 27
'G Language oe (2 Kgaobles:- Vowicble is sod none of Srerery Socation | ch stowed Aome dala a owt awe cone sensitive COPPER SO Ge (oa oy, hs Tate ae pee p ist chasacten tenis ollpRabet ow (> en ink aye 22 ity eRe chan fosbhey= 41, iiy Float float piz Sits Conshats -- Valves that dlon't Range (fnsd) Types Paxackn E eae Ret ed Tat { ta A es ain) Co, ——mS BOB a2). 24 os oth Keywords. ened ood at ove speciak ae @ scanned with OKEN Scanner for debe cota tye, > Uf # Colpo yy GG ie ina Talos Pe yan —- = (Aw Nn") aan topritt in new Linv, * CASES (Fos Output ) 4. inkegens per prnlf (My age © Yod, oge) > 2 weal nuBexw ~ tent Cvelve fp a HES BF ES: 3 ees —— 2 CREE Teton Wea gt i | [etal bebed dated, iceldal ii | $F aeok SR | Foe eT ace ean ("Zed SotaAh shes toa oe @ scanned with OKEN Scanner ison :- + A computen ? sam tat tsonsletes C cody inky Fr “echine code : ae C torep GR a exe (windows - Ta. oof Cor rad @ scanned with OKEN Scanner C2 # Tnsbuchow i re 7 These ov statemerits in apeegewm Conteod Treteochons + _ Apithinedic | : Se vcd a ee ablype Declaration Instructions | YpDecteasaTion Tnabuction —3 Dedlaxe Von efose using TE Nob oii Ze fp _int o= 225 see int a=22, c- - Sinise aes ae int b= ay ink cc br 4 ink c= bed Vota : int d=, e, itaasiny es. int a,c 5 @ scanned with OKEN Scanner Pesta enn cote / Include < math A> | festhme tc Trtevction —s 2) &% REE | i a rai ot a Ee | Nolid Trahid a arb*e bre=a , aze*c Gabo Toe —<¥ . az b/c a: bc —eulpet wt heh sng i . f for peor pong) for weapon y exe int a= Poula.gd, o : # Modullon Operates % t Gnvewion ine Returns semainden fos int _ as Zz Ape Expat @ scanned with OKEN Scanner # Operrtow Precedence! By BoDmA®> a = = ee | exp 9 445 * lo _ a Te 4 Ge) a >4+9o “ia - 94 P| exp wr 443 /6*2 . * ? 26 12/6)* a = = 292 ae a _Pssovatvity (fox same precedence) tf to Right cpekeuec bte R exe > 448 /C 42 =(10/ 4)¥2 = 4 ecm 2, 6» o> 5#2-243 2 4 . ae b> 5 42/243 ? St 4% = CtgrQ © scanned with OKEN Scanner Vinot equal &D ax 4254 — 4 #423; 2: 34230 3==4 — 0 24224 32 342352 Spgs. ' 4s S12 > _ @a4f Sn Sa a + x 4 o! _ Not (295) #2(493) 300 05) (A939 =e eich ay 35 pain “LGsss a = @ scanned with OKEN Scanner Assignment: Openators' Show! hand opertoy ~ = ae b hd ~ ee tt Ot srt Otter = Yor > Ave ty following vabd ow nat ? = a) Int a = 878" = Volid 5 b> intr 5 int y= 2) oe — eye apyeu > o> wad 4 Ran diag Piyadl @ scanned with OKEN Scanner ae of ras gals an iitigen such Bette? runber Half i free punef A et dX ays ds coual to Ay 4 Grdrtional Statemerct E> _____ Foes —P'> Tfrelse iS Sante a . & f “elec Sole] if CCond thon M1 Bt0ck 0 owike @ scanned with OKEN Scanner q BME Dy comof charachn “ifGaeaPSt 3 RL _! sings ucks is used « Dovid Breles wilt hg Conditioned Openctors Bi } Beit! Spenco 4 Break ae 3 Hap sorefing [a ok - | ——| Cx _intmoinl) { Fron day, printf (Menten day Cimon, fad +”) _sconf ("foe $day) ements __seitch (days) cage ‘ms punif (monday) = a | “I break; he Set ts >) cone “Hg paintf (“tuesday”) break’) @ scanned with OKEN Scanner L-4 | ee oop Contrall Statement = sh Bore FO FR pega 1s (initialisation 5 Condition; updation’) 7 Udo doret hing at izs oUed iterated | Go int maint) f folk L; ie=5 7 U1) fF oprintf (" Helow WesddNR) 5 @ scanned with OKEN Scanner = Drcvemert Openoto ss ——— —_=T Cpe cleceomert int f= 7 ES pnt-=t' 3,0 pmt(--)a1 st loop counten (1) can Be filoot ow even cho Ge even z= # tafe _ Gop : om fre (int i241) 5 x) fF i | © scanned with OKEN Scanner iy Using do ufuls Toop Ae induct Zshdio AS int mmoin() § tnt pom 900-4) raf pantt (" % 8”, sum), sel 05 ‘actu O, 3 ; 3 iii) Using AL Soop:- int tz 1,0, 60m=0;5 points ( Uppen Lint 5° seonf (" % a” ee hike Geo @ scanned with OKEN Scanner | ; j i 4 E_beak Statement ft hy ' a5 Keep takin numbew cs input from USO Ombd usen | —_entow an odd number. = _# indlode < stalio. 5S main () { mtn; é Bert ("Edens number? ): Sor Cint (21; 5 oes) @ scanned with OKEN Scanner “F# conhinve Sto kemert | —— Skip to next jtenaton ae printf ("Kd NW TD 2 wehuwn 03 i “Ge Print oll the odd numbew fom Sto So, Dink moinOh ow Cin 1255 122 Soy OE @ scanned with OKEN Scanner “ehh (DT part aX, M09 i Sn eS ee en 5s me: neluding 5450). 3S int mainOf = int 2-$,s0m= 0 5 — whale Co =50) - domret) 2 ‘ — eek} é. - Pak aun rs. Ye a”, sore © scanned with OKEN Scanner os Forctions f Recursion “s TH con te used multiple times [sn Tremme code wevsobilily | Syntox-I @ scanned with OKEN Scanner = kegpoint’- If se define {onchon Fefose masn On ship declorahan of J pichon then ioe unthon xd {> — _#indode ~ wid Deitel), __ Perit) e fonclion Coll a. werunn 0; ; wid Pritt {fonction definrhon_ ae oie 2 Dy : + Execution olunys shots fom main ig Afonchbn gets called divecthy ox Indisecthy from main _* There can be multiple fonctons in o Program __Fonchon Types = @ scanned with OKEN Scanner ex> # indudecstioh> int 600 Cinta, intb)5 int_main(){ ; i int o i easier aes ae Pant penta ttt pom ben | ___ acon Cd”, gad _ pantt ("e cond romber int, sz sum(a, bd 11 6,8 ogored [oka pond Bhan S Sims Fed) Bs 1] 214 > ponomucken [formal int b0mCint x, wetuw pes > Write — trot —— Namaste fea 1s Ty ¢ Beryoun tf tha user French . is [> Finck 2 aioh> vord pointhebtec) 5 vord pein bogooe O 3 ee = @ scanned with OKEN Scanner Ferd pretramale OF : a =| Parlf ( romaste! 5 __ = te | es | vord pr pent bongo T os printf" Bonjoun |): il Cees a - ae xo To pant Ty tot - 4 H induds Catto % > ' : a | a vord preintTobh Cint mn); . a - Yat mami} = void cleulahiprice O84 Cflbot vale int main Of Fhoot value= 100-0 + cal cudaliporic e Crab)» raphe vabee ets va vals bo wetuin 0} } tmsyt oe : }: vero cobeudot pace C float ait Vnlepaaiitla Gee vodutS 5 puintf C" Fined prec is @ scanned with OKEN Scanner ap “a> Wen te fonchions to cobcubati _onog ofa _ 4Qbaw, a uwclp fo wectangle . = -3> Fra eatdio- #> i vod azeosguare 5 vod aneacrwcle C5 d onsarectangle() j Vor int man T auasquar() 5 onta o'sch {> 5 cowa sectangl () wetunn 0% Void antosguare (usember) { into 5 Pretf (" Enter Rarvadivs efsquese >”) 4 Eis priscanf (' Yd", Pe); Point f(t The ance of sq var ts “hy 449 1t nee) ae void anraascle () { Fgaee. tates " ae Eee eed ofc: "); danf Fd", dw Di 3 e orwa afer 18. ay 3 ae @ scanned with OKEN Scanner er facd + include int man { port f (" wetwu 3 i : ee Esper > 59 Sfp Ee p # inchucl e tint main OT phe SH kh pata? en a cA floats = (flock) 2/8 5 & = pant fe CW npd "soa oF wetwur 0 Dupe we oes as Gel nud 2 et Oo bs p i as CS a | es hay 4 we cabled weewsion. self + t& > When a fonction colle @ scanned with OKEN Scanner , i Recursion tn torn of : ale, en ry Math) ee eee TF tod = feeds ae -@ a Ryne, a 3a HOO) fe m3 Fi f Cty = 2560 iy. Os Sm of fest nh naknal numbew, nn? eo Bie Aare MEME ODI CN—1) 4 pn, b Be Sana 142434 t45- Som (49 4+& Fst diese Sum(3) +4 = aise resis It243- Sore (2) + E ~ nea 42 = Smid 2 @ scanned with OKEN Scanner tnt gemma» symbr-Dj rat somN= gomNm4 +n 5 asehon sum j Som(4) + 5 = lor S=ts oom _ som (3) + + = 64= fo @ scanned with OKEN Scanner @ Scanned with OKEN Scanner vat fac Cent nd { ff Gi==0){ Getwin |) fibot convent Temp (fad nr) 5 int man OF = 2 flot ny penta vol D5 Boarf CO7F" Gr dj fleet convert Temp O); pant $C Fant AF”, fons vetunn Os ees Floot convertTemp Cfiloa# nd { toot = cebsjun + (9-0/5-0) * 32; ee hunny aaa ee @ scanned with OKEN Scanner

You might also like