Download as pdf
Download as pdf
You are on page 1of 34
Aessiqnmneet ad wt e}fictency and control aver Wardware make tb ideal . Sus th, pose, Derebabiliby SI C. tode can be ©: uy pented arrovs lif Eerent caucial Sion flisaxe—clenelopmacdl , espe ial, see ouicomertl utere mulliple plcbfomns are. gieck. EPicioncy CW is boon Son th elicenty jn tenes el bette eveution speed ond mena sage, its lou-lewel |! feoture allow péoqtiommess lp “have Lune Coal ol ouer cvysbew ~reveusteds Lange Stamos (Bact ® FC emer mith o lasge_sdondasa Liban, I Yak provides Sunelion for commen tasks . Jibs input / ool put posblens and memors mouege merit Th be beatin ames cloyelapes Hines Stent by i isltny Yeadhng- on ade Solifious, 1 wibility * = ‘at e at le a high clesice ot Lh a allo: La = ikea cade cl” [flor edt lewels a4 eolid Seundation in pratsamming concept Like. rorialles, loops Sunekious and spivtess welche (us set! the iwmpestonc 4 C. Lensisas, id eyyicienty pesbabilids Clewibiliber “a ides gvend I use fa upe various clomain o}_S0 [bats f deneclopment E. ae fone He [ate = =e — CIS ase the we 4 sit af 7 i 0 od rad a ne aa ae) ie cob Foes ZA pee < . A =. Mose at * vot? tf a fa Vial s ¢ _ ¢ | imple 3 9 Pcie “Thal? beni sete style oh. “maplementing C- age rene a ave : : J Ow) J Middle: Level Ps myta yereneed ta a taidite O19.) as Leauas4es ex wise UE co Cae ae hana arcu: 4 : | techniques alfousis “ wt dois with, thigh: | a aithourten 1 f ea, pesgiaca closly ct vu de erganizatic 4 Code whe | Lectica! bincks cued Give seep! onl | stelemensts i Rich Lilscassy ppost!_C_prouide ich st welasd_[:btary ttaat Tachudes Gunel Con commen tase such os i/o el | incrynousiemérat operations and 4 | Paice Suppech? Cinbcdun the count of gainte, shrich ane variables tc stone woo adele De ox _dicectives 1.C incl proqiece caine and torAticnal cow pilation alex the incisine af heade. Cle, macro definite Rese bealiliby + © cade be agi! cli fewer plot Parmar silt pita Ea horses , thanks fe ta stiodasclinédsegiias ond {i anadis bi | | ah Covile a Helle World” ese , tH include < stdioh * + include int — main C) - a : | ¥ paint (® ello Wedd | \n™” ), xebvin O 4 g break own Sheps “te exeaske this | Now, let: Pingo D Write the Code? First, anibe the pregame ded: dite, oo an LOE ard save th with A entevaian uch ay helloc + WD Compile the Code? Open a stevimival at temmand pica ond nouigate te dirs! boey hex yous hellore 5 Cpomeiles like GCC bs 4 ce hello. c - 6 hello 7 This —_conamand belts GEC te compile oo 2 able file named —hello.————* [TY “Evecwte the poogeme! Once the compilation — sveereshul, gest coun execute “tne_pongean by —— Ayping bloc Festa comand‘ "400,_tenminal S$ ——* Ye\\o . This commer) tuna the belle exeailale generated i rthe piewnus step. > View Svbpyt feo ARGH Should See the eubpuh Hello eet {Ge plas play in the terminal Te paagiam toes terminates andcaull see the ravaeebcl peta ante ef Pa GO hak is__Compileddi on Process.“ Desenihe all 4 _E phases of! Cerpilaction, esith—o_ neat diagram, | of —_Smutce code arsitbein in Lengunye Cue as_C) inte _ Compilation “Posters —laypiently consiets of several phases? | Vp - The seunce cede Sie wriblen in _C with Y Preprocessing * t . oa ¥ | poeptocessen disectivesr iT Sfp = Modified sauce code witheul pseprncerres divecttus . | e = “Tn tis phase, dhe preptoteuict examines the | D Compilation: ifp - Pre processed cence code Riles i/p_- _Assewly code Giles 5 Op ~ Object tee Lik _Crmachine code in binary, fern ~ = “Tes phose involves tron jating hewton=teadable ma a serably insttuclions imo bivety machine cote inabuclons. 4 “> Liv y ip =< Object Siles_ftxeries + ofp _- _Eveeytable file. __ = Tn tis phase, Linker combines the object files aleny-—— its any necesary Libraties te prcduce an_oxeeaitable fle A_ (Page No] eon 5? Loosing (uot always a distinct phase ) ip = Executable filo ele loaded spesngasn in 1 mmexerny, = Mis pho. Involves allecating msec fo the Péossam setting up the pioytanth snuiten mel 2 pepe itt Ln execsdtion g eae hello [C_ peegeam i CAD) | Wet ee ee Se ee a L Compile) v Kssemnboli Chssemtien) hello. ob Lobiest cote] Clinker w hetlo-exe Brecubable Code | \ C ED) (Page No] [bas COgite oo Short note on IDE ; J— = KDE - Tetequaded. “Developmeril Envisonment: . IDE B® a “efi 209.ce Oy that prowides —_—__j} — rape hensive 4 Rees dewelopment in one cunlind inhenJace + The preceas | — sh fa mapa wing anal lobia ing preggo | — is_ep-ben vecnagel by To ave lange setlinare prose dit Giles ta te t : prospec, - | —tarnpile | tinke yviin ase clelaug tape | [ape aAjer—adiuanced cole editing capabiliicn melding | | daw Iniqbliglt i ae o plea. 2 cade vohacling tnal lI go r - thee ih eld ald meee tock Haat IL Represents a decicie paint cher I ondibinn i wo latecs } Pi) Crpacte wjechol | / Tadicades sanedion betucen kif feseuat | I pads of Sa vse alt sed te avnid clutter, 1 howe dicertion of tas Fremm ene syrabal | aie | ____Represety a procdeGned woes that ix defined I Asemher 1 Ls Document: mbol + Repocseits odecmerit eA —- i past of tice preceas a FR i ta ec # include < stdioh> ## include Adtere initial chemacher jorsinhte names can conbain - 1 o-3 " - |) Variable nawaes “ee cate - cenailive. vy qi i eed. A ic 4 WD Choose moeaaivgisl 2 dascriplive namés thal ~ivetcate ‘the spur pase nf _vowtable. J sll ov) Use Lomen case Letters Gre wortinhle- names tn : Draw sthe ‘ble sy iff Sioa thei sizes “ange 2 Focnat ss fers_Used, __ =>] eget gene pa et ed ea eae mine can a © Chaeacters = xepecsed individual chermackes oe [Page No, [ose] Datr type Size Re “ Fecmat ai Go tbytes) 7) | Species | Chew i =123 to Ft Signed) ye ot 266 Gnsigned) | inb A [= DN TAT ASAE to memenal DFR RBCRT | i Shot 2 | - SES te 04F | hd long, Ae 8 | -2NFA83S4S to | ld om Ald DATA BEE (32-bit) H ‘ -- a ps % =| 2%] te [23-1 1 Ud Leng, Lona | | Ul | int frovcex. £ 340282347 | AL: Hint. - E+3eF | i ! Double, $ ‘Appene, VPS#69 3134 | IM hg = BELBISFOE+ RR, elk | | tor Ie fiissise+4s | MLE om wLg lang double | 10.0% 14 | Boysen Ess | oad thd ok ave different: operators Suppustedin C wo. claret Sn Clana p—Opercttora ane. _sy fu. oper oki onan variables and Values. “The Ey Sea oe eels L. Asithmebio Operctows + Used to perform _inethemadical opercdion Addition +) | Substeaction C) , Multiplication Ge) Dwisen(/) , Modulos Ch) 2. Relational Operators | Use we Equal to (==) Net equ 4 C12) Geeader than (>) Less ‘than (2) ” Geeadee than ® equal & (>=) less_than es eval te (<=) 3: Losical Operotos + Usd te qeefuem losical operations. 2s Logical AND (8&)_Lesiend_ o& (1) Lesical not(1) 4a Assignnextt Operates! sed Jo assign valoes Jo vaxtables- Simple assist (=) _ Addit assiqn (+=) | Subst _assiqn(- =) Maltiplieal™ assign (x=) Division assign ( /=) Modulos assign Gia) ft deexense the vale of a vosicble. aa Thesement B Dectoment Opecadors + Used te incense “on — Thetementt ++) 6: Conditional Opetaloe: (Temaey Sp)! Used fe desision:mali, —@rditional expression ? tee value i false valve. > seb te_determine size of a dada type + Used _te separate expressions . Commas) eh 30 ‘Decetiphion Revertheses Postfix increment / decoemert Onate, Operator | Moltiplioat , division, Medolus i [= he) Addit® | Substrac Bitwise left 3 wight shit Reledional Operotors . Equality Operoters Bitwise AND Bitwise KOR Bikwise OR, Logical AND Logical OR Conditional Cbemany) epercre Assignment Opesatoss Comma Operates Page Ni (oate] = Pavaliahe “the —follauing a> (o+10 ) x IS /S Phase ti 30% 3 3o b> (20 +10 HIS) ; Phace i C30 x IS) /5 Aso /e 20 & (20 +10) &Cis/s) Phase 12. 30 % 3 380 ay ja keie aie wesett = Jesh Lok Sra luc ef ~vexbt. xesolk = I ==15 || i >I¢ OM l «result = 4 ©) A=10, b=I0, C=30_ sesolt =axbe aac Sind_valus of ‘veaolt. esulb = 10 *10 + +430 = 100 + 60 ss 2 ‘sesolb = (60 (f) sesult = [2-2 le © Find value of sesolt . aise 7 e oa Tealt= oI © ee SEE needed Hurdite ia shest note on type Conversion. CoDhet is ype Convetsion 2 14 ais Giulia, a4 nea p be 2 ang petiveen Ai Pore it date dypes in enpsesiions —abdigaynd i i a Pnction eapueassls tie maismatchel types _— would cose Compilation errors ¢ Te. J fauche_diffned lata typo [a1 insinecmundiog — Lawapls 2 ¥t include I #€_inclode veid main ©) int nun =10 j 7. chat ~Kesalt j > wesalt= (nom 72 2=0)% “Bren”! Odd” 5 paintf (hd is /S\n" nom vesotb) get ne); am TL output _is = 10 is even Kissigrmert -3 (a) fae 2 “ES. (Ponena| | (Date = a 2: béeak = sbermincties tthe loa or _siuit Jie Cran nse = Kips the Gumnent ibenation of a lane — o tebyen = Terminates J. seared a valve te the Caller, —__ 2 __getn — “Taster conbsal toa tobeled stmt within the same unchion | granting vel Sonik depen caalibg — j~—____< ing Kelas : thei t ee based an contain conditions. A Da rising ce pallens awed 8 ey Pocilitate the Geo of cartel within a— Presqvam enabling - it_to Xeapomd dynamically — te di Porent! scenarios and. — inputs —__— _ Eo mn = a ~ Descxibe sth iW iocence behusen: ith & if-else’ le va. as OL TTT = Sflie ei Dail lie w sdntte ane hath aed fy comditional exertion tn-C Peaspsamaming outs “thes, hame different! behosmiawes based an Hae Conditions BW Qeabectesctd® > bel Theil _stedt exeruten a black of code if a ! Cxcample iB dt include : 3 ; cid _maain©) iat, um = 10 5 if Crom 70) pints (“Number is_positive\n” 3 pant’ (“Hello”) ; goth); | (| | Bat eee 7 {! —~ i l a eae Gea: a ize laeatenars execriles So block oh conde [ : is £stelionh> ape at incl ‘cid main () z= int wom = 1S" 5 if Cnow z o) j print? Cn mbes is positive Oe if (wom 72220) print CW mbes “is evens aaye else ? © w _psi my i \w 5 is t peiat® (Number is_negative as P iat (“ Hello \n” ) . gothQ) i ae | Nese h adh ated ich ue ened us Lan Amol, aml afl geile EPs) Se |e = \oae = — -C prspeam te Dipl alates ta elas Ghastbc~ ## include 4 stdioh stl main () chor ch 3 paint? Ow characbet?) + 5 Scant ( ro” & ch); eoiteh Cy ea? Case. a = case ‘eo’ . Case Si) case ‘Oo’ case “u's case "A's case ‘£’ , + | Case zs case O case ‘U" pent ( he is a vowel \n”, ch): bree i ie default 8 ( print CX 6 is a consonart 0”, ch); oe ee # include < stdinh > void main) j inh: -num xn 20, xemaindex + : ‘e : my) con’ Cra, Win) sts Co \= 0) Xtemaindes = num 7 10 5 Xn = 4n *10 + vemaindes ; num /= 104 pencth (Se Meyerse of nambes_ig t+ Zed nn) gekehC); IS =] | Sa Fite a Prag san ti accepl asa timbers 9 Compute. qbationt 3evemainder., display bal, we include aan vaain(’) int__divi dend_, divisos ,quotienb, vemainder ; = main C) - imt_n -sum=0,i=1 rene d bw; sei (Gi <=n) Sumte iy i++ 5 5 7 pent C Som of Pest 7d ed a n,sum ) 5 getch©) ao [paw Using —do=ushile leap? thinclude id an 5 Mol: intl sue of =ille peat (" ae ae seca ea Beant 7, 4” Pn); ae um $= TS i++ 5 $ sahile Ci =n); eae] PG . tok = wv a aetch( ) ; J Zh.

You might also like