[go: up one dir, main page]

0% found this document useful (0 votes)
26 views22 pages

Fahad Assignment 2-2024 2-32 PM

Uploaded by

MD FAHAD HUSSAIN
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)
26 views22 pages

Fahad Assignment 2-2024 2-32 PM

Uploaded by

MD FAHAD HUSSAIN
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/ 22
KATIHAR ENGINEERING COLLEGE ; NAME Mal. fodrad. Wursain » : = BRANCH eri gb 7 __| = SEMESTER iL sem __ — = REG. NO : Z3IOFI29Q04g. : ~ ROLL NO : LALA — - SUBJECT fps. a - DATE en S1- feb 2624. — = SESSION z 2028-24 - PROFESSOR’S SIGN :.. Quextien _fafea -2014 __ Pps CA ssnmeat) fa) Inked will be the output of ris ¢ code, jactude id main OC) § int n=2 , 424 Zs v S++ ¢ ++ Printf (' efod " 2) . + D 4 (9 14 $F 16 Dt Qs (ey Jao. fF yo paw OsFoW At an anyument. deo ise, what actually jete pasted 2— (iy value of ah, a9 Antony @_ fal element of dle amas ee Bare addwor { the, ee () adden gf dan 08 a, © cud ued sho “paniea cant fen a eee oack tho aha. ~calling_ fonction Ku GO) gusiteh Jute G)_je back GH aeurn, J iWhat ill be Abe oudpud of the cede» 3Finclude << cdoins ial mao () i H = wo 4 coast int w= 44 ne 10: i psindf C'eted \n", a) 5 { xetusn O | | 4¥ | (iy eo @ Goserbage value SE Carex @_lo Wh) iain af de following are nay opesacrs i in CC 2 iy 8 a Loe CG 89 | i ii @_ ivi. @ a i Tay OT aa iz Wye Horo esi Lew Yuu freo. Abe. Allocated _memy gemoeve (var. name) 5 Se [@ fee Cvar- name) 4 = LGD delefe (var name) a GP alloc (var. name), = (i) hich __sJatemen} will grou add in He Follawvieg a Peyam to wesk if Co ect hy 9 [ Ze include < Sdolip-h’ iat main (_) 4 indl ("fs 122.0 sotuen j are tee follecing ots ite ; lies i = pape Print oll pared prime © | WMMnboens yells | Splution 2 FE include Solio. int is Paime Cal aum) % if Camm cet) f eo ; fusn 0 int meio () & fo (int jot 3 4 uf Cn Prime (i) £ Pvialf C'eed In 4 4 return 0 5 fh Ol Pp priatf ("Prime numbente bbs 1 aad Lo» arr = loo; +4 i) § "3d bjwo 4 and (oo ove + , a”); 94. oes od. Co)! 12 s__ syntactically valid po se. float eriebly | ss hoe) cemefsol uasieble bud tis aed [ recommended. Jusdify yore won cee g acting a | Aw _edatement . Solufion Udeiay a {loa} vanialele 04 4 1 [ | verinble’ is dechajeally Permissible get ids Csrcivaca o4gaingd clue to Precicinn - yelated (44 float shre as eH, Predsioo, making trem Suscaptite te I sounding erevom cluving 7 coladadont. in Loop | Condition ore, Pwech Damen) ComPanison s- Crudal, wing (boot Varinbles Mead do unenpeced 7 behovinuwy. The linasy vepreceake | ol Poot valuoc nay setuld fa sud Os) Gusti) This Ce-0 Compromise Hag of detyp Conbeol , pojentially consis $0 dewminate Powmaduroly ” oe Lnsmfeckdls Te ence rolasd Zepseteatahiod Limited Proclicdabio coe, i] ww adui able pd + opt fsx ines Vamaledes When raatwlliar eee 7 J 03. || answow (a) _ alrite a Poo of ‘ Solltiva 4” | te inctuote 2 scion | int main () 2 1 ifs ; ya"): f — pt | | | | 4 O/p :- Al Crenbinations of 1 Aad 3 avo, & | tis D ua 13 2A B30 | mu 281 233 q 420 132 122 2133 | PBL ou 132 Sie 143 310, au Uh ] S14 BAe | 22t ALS | LIT 431 | ot 0% (1) =a aa Jypes so 0. isms —Pranirfnt shale as ee ane of memoy occupied , formes ~ U pocifiewt aad woop. udiog 3- eae ed dain Rate Data 8 vamable Con hold. Parmitive late 7 Hees in Otello 2 , - Qi) int Cinteten) $° t * Lumat sPocifier $ od L eR 52147493443 te 2149495 a fs 32-bit Sperm, Gi) Pood ( Phoading - Point) + Momus “oceupied 2 Usual 4 bytes. ° fused prfities 2 of pee S$ AlPmrimately 2.4 6-38 3 4+ az Hy & clecimal Placos of Pyocision. 0 (i) doulle (Double Procician (Uoakng - poinb) + Merny oceupied % (ene allt e 8 bodes — 2 finmal Specifier 2h Uf 1 Rants, i_Appronimately [yo . a2 LAP 2980 with 1¢ cleciml Choos of Procisivo [es @_Chaa (Chanacke) + Memevy occupied "Ty Pi codly jf bade, « fmmal _sfecifiess 2 % C ¢ . Roarje 2-12 to 1g or oO to ass. depending on whetor jf 4 Ji ° ipaod oe unsiyed oa Define calling and Called faction with suj table — examples. what clo you mean by Call iy - value aad Call = nofemente ? eoride C (aa fore Exe and “eg: wofersence, _fech cio, ue. Sol con % Calling and Called funchion & 3 Calling fanctive $+ A fasncpieo ato initiates Ha Smeclipn of ancthos frnctsn “iA Called dos calling fusion. I tppically Conpains the Funuhbru” Haet—3 evoked. Calls tadement Colled frnctine % the feothina dhs in vated “oy Oneruted as a werult a} jhe Fractieo Coll From —santhece function ‘ic ve fersed ax the called Fan cdivo. ly Coll toy voluo % To dhiu Pan dere. Peony we Uhanicra , fit, value, of athe, actual Paramelers (2d pument) aoe _CePied inks the. femal mek of dhe function. Chanjes ade, dd he Poeame det within Ile fratttoo ole aed effect Ae achal Pswxenesbend fretr(eces)ecr [puree lore | [eles [reall ste feo an pa fe Any a me ; cal i mack b> dhe cheat Paxameters 10 te = chal Pavamederre _— — XC. Pawn a for wap hing feo suaendatat $2 OT is ~O cally Value 1 = ii olin. 7 | vaiel sua Ly ‘ede Cd Oo, int b) f | iol emp = a; | Qs hb; = ; bs temp ' | % Inf main ©) 9 r lg} Num t= 5 Mum 2 > 10 5 = | Priedl (" gehine 29) 5 Aum = ted , aump= hd Ee = 1 ee Aunt, num?) 5 pe T Died mi clue (nue p. atim2) | i | Priadl (+ Af fer OP tau |= Yed 1 num? > 2hd— uum |, Aum?) ! 1 Bedun Os 7 — 4 Lo | ate a aan | coll Ly - meyaatess ae Stolio-h> : Qs sear gene sind» ei | int {emp > XA _ Peon : hk OK ne a 4H = — I I iad mein) 2 a el inf _numi=¢ , num2r= lo; a7 Priat! (" Refose Sula? num) = tol, numas'ta Yn" | Aue) num) } | Swoaply clewence, (Saunt, §num2) E Priel [ Alen swap: aumis ad , num>= yd \o" mum). aum2) 3 I fl Yolo © | 7 3 I S| Answer Ho following quertions & T . : 1 Explain eso mee aad Lotice | vi 19 oH avithmeti Qi of Cn Pre .¢ (100 same, how Assocatiyt helps in —jdectifying which _opecectons will loo ~exraluated finsd 2 Gh JIuetfrote if With en aenple. A\xithmestic — opPerra}us Avithineric ppesadoy 19 C__Peafars mathematical OPesefeos of Qumenjeal volues. Hena ae ho Prin aar) avith metic oPersadves . eee (i_Adetifivo (a) A val sum = @ aubsactroo (-) 1 Subsjaac]s tho Yd -2peee- | Som to Jeff ofosanel r | iat _diflesence 2 8-3 + T CD Mu thpli casio CAL Mittiplion — speo Priced iat _pmoiuct 2 4% 2 3 r LOD viviccoo C/)' Divides the dol OP bsaod bay dno vigh{ _oftaand I = loo/7,04 Om. sh) ¥ memas voben dhe Jeft operand ur divided by te | Bist _opewand . E I int a -yemainoler = Los 3 I pica) opersardoss 2 lofica) DP omatoes Ovo ute) fo _p frome Loyal d I ofesatms 0 Bovlesn valuer ( fue fol | (a) Logical AND (8 88) 1 Botan tre if bot wpenadol. mse tue 1 id conditiva 2 (6 >3) & Yl4eq) i Uf condlifis Ws _pue — Ibs Leyieal ORCI). Retna due ae _openroo| A Arve. [ay coadidton = (53) 1 C4 > 5) 4 I Condon iy | drue_ | fey Lofies} NOT C1) : Redwins pve iT fhe operand | uu false and vite Ver in} condition = 10573) I] coadstioo f alse (vil) Procodence and A, ociahvi ty f, I Whoa the Pyerodene, of wo pperady in ao Cuproiogn i Hye Sime, arcociatvity cletesmingc. the oxde. f valuation. J an ' int ost = C+ 2-2 3 I Rome & 6. Suppre Haat hundred numbers ase entexed fom Poe kon lead info 5 Oerooly “The Atembseers ho be. a iqh ars [100] pall C8 ; “) ; scaaf (“tha" . & keg) fo link 12 Ot i en ees) t t t if (aw Cid = = Ken) 9 _) | Count +4: ; | I 4 if Cougl > ©) § Prinlf ("The aumbey Yod % Prevent in Phe owe ed timer, &\o" key, Cound)? 1 Sele § i Prat { (Tle. numben “hd tA net Pree ot t val Saney \n", vor) ; I uy . | % “ t | seen O ; be Zeal Bb es] CE aa po =o eee jz a & enkaed thay ite, 0: } () |_ 89g heer uate 9 C- Pavyareen _ Je elermeune — vorharth eon pee die. _@oa 4 _Aeap ged 2% N04 sae | _l Solution ein cluode, < sdoliob | ing main CD I im _geae >} > Path (Eder a yoor: “)i yt scoof Ura”, & eee) | f Ligeer deze 0 QQ Jeon oo io ! = ©) II I ( Yeon foo sso)) fh j Prantl (“ed in a deayo Jean . 0. Jean ls 4 ele 4 | ne ‘a_oot a Joa year. \o" Jess ) L relrn 0! > | % O/P I Ender % Yoon | or | ou 4 ast a _Joap year Ww 2 (6 » wie C ann WA pt. eschiy o | 7” oe mu Ay de ws padiler ae oI f Soladiiee = e r include 4 sid f int main () £ [ 2 in} vous « C4 KOK eye 7 fox lin) j zo ji cwous pitt) KEK MEY kate - 7 { 8 A | he lint joo 3) 49% (pues ies jaalt : | Puindf (" nye us i 4 i ! fo (iat uso + kKe2 eires kaa) § { _priahf ("oe") | % ! Prioif (" \n") | I 1 ! Betuen 0 | ‘ , r LE op I es I HH E KF HH ae I XR oP ok ab ot ob - Rae ae ok ak ae ok oe oh i I i 2 Fe) |_Dsfine —schrvage _Classes wait ifs algo dled aid. SolachvO 37 Sdowaze classes dedewmino athe ceop. wisihildy saad Lifesime of varialte s These are eee fous masn. spraze clarsox | Quo wo Pisdere 9 dodic ond entero |G Arte (Aide matic) 1 + Topo = Local 2 default - AL) Local yerirbotoy are auto by. Olefoutt . © lifetime - 1d enut only within He black ib uy do fiard ( freetion ex Compound dasement) + Epemple — Voijal enample Pancha O Qup int becssess ocalvane 4 (HD Resuder Tyee =~ Local, * Default - Naoae © Lifetime - Similao po auto tele brit Shned iq 2 wegtecdten fro fosler Re cos 2 Usege - J) ia wqjeits Jo fle ComPilew te stone aa Ho mee wo oficde fra Juick accou © Eroopte 1- Noid emampte functeo () 3 RHicdes in} ¥eFIaa 4 4 ‘WS > | L @ state | ee |e tipo - local oo (olobal a [oe Wfaudt - None T Ls Uifchine fa local vanghle Jit vetoing We (value bya finest. Calle a Sfp obs! variables, if exuty fos the enj —Pfanen Aifetinre $ Usase - To _setuin he value sense fe nal sls es jo Limit He sempe af a 1g Slobal vawiatite » t Evomple void erample fraction () 9 Static int static vay + 4 @Eekine « Je Toe = Giobal t = Default -_ None Lo 2 lifetime = It emits he je ena 2 8 Prysam l Lifetime : = { Useye - To cleclave 4 Wola! vesable the 4 defined in ragtlwy filo = S Eoxenp lo if L tad Hlobalvas = po » WU file ic. Sater ial Mobalves; |) filr 0 Arnsvoeny = folloun: Ew stashed iw eee sere 2 ‘faker 1adArers 2 rea % le gee at ues warn tte Lov Series Using weeding 4 Sz lr AS -—- y Nudie f A vecunsive function is a fiochan Husd palh ‘bell io ts efinitteo. Recursive faochwns lug, Cawlrle ns by brealeng them clown mi Smnaldecs iasbancos af she Sane pmblom. ch step, Te function cad) ik with a Ep ow medued venue of He Paoblom until) a ba case wy oRLbod » af who poiat He —ecuasstco stops. Wy Recurive freien bo find Hoe sum of He reed HF include

You might also like