Address
:
[go:
up one dir
,
main page
]
Include Form
Remove Scripts
Session Cookies
Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
26 views
22 pages
Fahad Assignment 2-2024 2-32 PM
Uploaded by
MD FAHAD HUSSAIN
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 Fahad Assignment 2-2024 2-32 Pm For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
26 views
22 pages
Fahad Assignment 2-2024 2-32 PM
Uploaded by
MD FAHAD HUSSAIN
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 Fahad Assignment 2-2024 2-32 Pm For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 22
Search
Fullscreen
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 dan08 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 izWye 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 0int 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 J03. || 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 [reallste 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 | atea 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 jza & 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 yearWw 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 i2 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 0Arnsvoeny = 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
Class 11 Complete Notes Computer Science 2025
PDF
No ratings yet
Class 11 Complete Notes Computer Science 2025
80 pages
Smart Interviews Notes
PDF
No ratings yet
Smart Interviews Notes
75 pages
CS8251
PDF
No ratings yet
CS8251
31 pages
Data Structures Unit 1 - SVS
PDF
No ratings yet
Data Structures Unit 1 - SVS
21 pages
Class 12 CS Working With Functions
PDF
No ratings yet
Class 12 CS Working With Functions
47 pages
Cnotes
PDF
No ratings yet
Cnotes
85 pages
DSA - C++ - Notes Written by SCOE, Comp Student
PDF
No ratings yet
DSA - C++ - Notes Written by SCOE, Comp Student
28 pages
Chapter 3 (Functions) 1
PDF
No ratings yet
Chapter 3 (Functions) 1
20 pages
C++ Short Handwritten Notes
PDF
No ratings yet
C++ Short Handwritten Notes
25 pages
2
PDF
No ratings yet
2
69 pages
Unit 2 FDS
PDF
No ratings yet
Unit 2 FDS
47 pages
Program C++, HTML, SQL ...
PDF
No ratings yet
Program C++, HTML, SQL ...
32 pages
Coa Unit 2 Notes
PDF
No ratings yet
Coa Unit 2 Notes
38 pages
Chapter 3 Data Handling
PDF
No ratings yet
Chapter 3 Data Handling
38 pages
Compiler Design - Unit 5
PDF
No ratings yet
Compiler Design - Unit 5
34 pages
Js
PDF
No ratings yet
Js
26 pages
Data Structures Using C (Complete Notes) - Srishty
PDF
No ratings yet
Data Structures Using C (Complete Notes) - Srishty
84 pages
Java 2
PDF
No ratings yet
Java 2
66 pages
C Programming Gate
PDF
No ratings yet
C Programming Gate
22 pages
C Assignment-1 - Compressed
PDF
No ratings yet
C Assignment-1 - Compressed
18 pages
C++ Unit 2
PDF
No ratings yet
C++ Unit 2
46 pages
DAA Notes
PDF
No ratings yet
DAA Notes
46 pages
BCP Ab
PDF
No ratings yet
BCP Ab
65 pages
204-5 Unit-1
PDF
No ratings yet
204-5 Unit-1
24 pages
POP Programs Learn More About The Day
PDF
No ratings yet
POP Programs Learn More About The Day
38 pages
Python Model Practical.. (Set 4)
PDF
No ratings yet
Python Model Practical.. (Set 4)
65 pages
Unit 1 - DAA
PDF
No ratings yet
Unit 1 - DAA
42 pages
Digital Electronics Course Gate Insights Version Cse
PDF
No ratings yet
Digital Electronics Course Gate Insights Version Cse
81 pages
FPL Set A
PDF
No ratings yet
FPL Set A
13 pages
Model X1 Six-Shooter Common Settling Pond Layout Drawings 120207
PDF
No ratings yet
Model X1 Six-Shooter Common Settling Pond Layout Drawings 120207
4 pages
DocScanner 13 Sept 2023 20-07
PDF
No ratings yet
DocScanner 13 Sept 2023 20-07
30 pages
Ipvp Ut2
PDF
No ratings yet
Ipvp Ut2
20 pages
DAA Unit 1,2
PDF
No ratings yet
DAA Unit 1,2
33 pages
R Programming Notes
PDF
No ratings yet
R Programming Notes
24 pages
DSD Assignment
PDF
No ratings yet
DSD Assignment
92 pages
C++ and Oops
PDF
No ratings yet
C++ and Oops
29 pages
A (Ind) S1na Studunk: Subempuli Progama'ng Dle3/os/2721
PDF
No ratings yet
A (Ind) S1na Studunk: Subempuli Progama'ng Dle3/os/2721
12 pages
Error Analysis
PDF
No ratings yet
Error Analysis
29 pages
Python Unit 1 Complete Notes
PDF
No ratings yet
Python Unit 1 Complete Notes
46 pages
Cs Notes
PDF
No ratings yet
Cs Notes
28 pages
Pyton Notes 2
PDF
No ratings yet
Pyton Notes 2
29 pages
C Programming Notes (Unit-1234A) First Sem
PDF
No ratings yet
C Programming Notes (Unit-1234A) First Sem
86 pages
Notesof C Language by Abhay Kumar Awasthi Till Recursion
PDF
No ratings yet
Notesof C Language by Abhay Kumar Awasthi Till Recursion
27 pages
C Language Handwritten Notes With Sample Codes
PDF
No ratings yet
C Language Handwritten Notes With Sample Codes
103 pages
C Language 1
PDF
No ratings yet
C Language 1
44 pages
Computer Training
PDF
No ratings yet
Computer Training
26 pages
C++ Fundamentals (DSA)
PDF
No ratings yet
C++ Fundamentals (DSA)
33 pages
Computer Work
PDF
No ratings yet
Computer Work
42 pages
Python Photocopy Jul 18, 2023 3-16 PM
PDF
No ratings yet
Python Photocopy Jul 18, 2023 3-16 PM
34 pages
Computer Science Notes
PDF
No ratings yet
Computer Science Notes
36 pages
Chapter 2 Python Fundamentals
PDF
No ratings yet
Chapter 2 Python Fundamentals
33 pages
Continuity
PDF
No ratings yet
Continuity
29 pages
Data Structures UNIT-1
PDF
No ratings yet
Data Structures UNIT-1
32 pages
DocScanner 24 Jul 2024 9-56 Am
PDF
No ratings yet
DocScanner 24 Jul 2024 9-56 Am
27 pages
C
PDF
No ratings yet
C
25 pages
Predictive Parser
PDF
No ratings yet
Predictive Parser
17 pages
Nitu
PDF
No ratings yet
Nitu
16 pages
Python-Unit-4 R16
PDF
No ratings yet
Python-Unit-4 R16
18 pages