0% found this document useful (0 votes)
12 views23 pages

C Unit 1

The document discusses programming concepts related to variable declaration, data types, and operations in C language. It covers fundamental data types, constants, and various operators including arithmetic and bitwise operations. Additionally, it emphasizes the importance of proper syntax and conventions in coding practices.
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)
12 views23 pages

C Unit 1

The document discusses programming concepts related to variable declaration, data types, and operations in C language. It covers fundamental data types, constants, and various operators including arithmetic and bitwise operations. Additionally, it emphasizes the importance of proper syntax and conventions in coding practices.
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/ 23
CA wap, 7 hal 6° (ba ppt, pce papi Se trot ee rie daulgng Syston gaptuate applitacion aapaane , anal poimucare- , * i a b vs Ate, at ull fabs Or 1970 and i eg be ae patel PT Languages, outing as He jeundation fe "ary piaplaroning Sof “ ei een op Abt nt HEY fi ow ing pin ot om PPS Coun 6 ; * iy idion in tums a. nacaion oped vy ( tb brawn jo ste coped ing, haucdeuate canner @ Modula ~ % : conning, oleaing deals 2° C dupparts maglula po if cable bask down Os Bund Bord : 5 I makes coe easin # : functions wH hs maintain and albu @ fesdabilidy l fag i A. 6 C cade can b¢ wsalttin be Ns. 6h hun wm dijon Le i Bu atndaud Ubuaries @ lor didxow dup - ' b 6 hab dana aay tae pra a ete fA poabe ae ily eel” radhunatial, Compulsion, Ly as any Rrawn as the Carat (Avauy a @ scanned with OKEN Scanner V > trode de Ly ayes tb Bi ot op unanachus that tan be ubiel im wal ting C praptaons 1 Huse Unanauy Include lett agit, peclal dymbes, wap Saunas and abit, pace Chanacteus Ly be thanactsl det is fundamental io te 0H, Of Le C , 0 Ie defines le vranactens tan be Wid to wil tadontipiou keywords lanstardts wd epwataus br a. ¢ i Oulslied ey, wppoiase and LautH BE. Teas pom ob 4 Odpeckt bals - jews punctuatian mats, prratans te 6h tte) 4 iiestney tare Ebtape baqyuntes - : , ui yarn pati rr pte uw < @ scanned with OKEN Scanner > Sdyrtifions. X uiliffens awe uniyw namus that ae absigned ta Mawlabls, dimuctiiis , Junction , and ethen oe, "ett © eb iy ay & iw es flat “dada de fi an ident fi id be eitny an apie 8 oy bey tes ham be pallented by any % the choral, agit, oy Unda ne. a & bhould ret bgln ult ary rumored digi ee rn ; tad 2 Sduntipiens tn Cae Case buneltie. Wis meant ; ee, “Myuautable’, “My vaeraere , Me candied Cod dif iduntiprens 4. Commas a4 blankspas Cannat be apuciffed Cel ¥ dunt fio. 5, Kywniads Cannot be auppusoried 45 an tarde 6 dhe tu tent! plows dhauld vat be rau Van 4l : 5. An tdentip Connat include dpecial Uranacls encept by'__ | nolo ae. @ scanned with OKEN Scanner 9 Kepoads tC cow, Auseuned aes nat haut preyed maantis ard aww oop Oe © tegerze “em b Yue Rupes coat be wie a wae names forcn nas, abu identi prow uulthin to feManam Cue fox tuiy intndel prpaee. ” atandased Koper Ly ha 6 paapuanoniag Language as Oi ate dF ta by th, chan, int, long, Ube, 2 ye bi a dan tat oe, vase Can Blane BKe b gt aslo Pig cate ; 2 bth den pe gyn deer ee a aud dome ut me ata \ Bahia: fuieiw wt e Rota yee dein e @ scanned with OKEN Scanner > Sort fious. * elles te nie names tat ne ated vawiabls doucigus, Junction, ard einen enifeis + Wey ay used unlyly fluntily Ye entity tuithiy Be helps ly ty te entity hin & int age; pleat alow; im (wating Sdertipion in C: 1 Me ust cramer, of an ide dhauld be etwi an spake ots win, da i an be febeused tno mp libalaie ciptat S numedital aight x means Wat 2 a bhould ret bigln wlth ary gauntipions bn C awe Case- densliiue, nis A ma: *Myuaulable', ‘My VARIABLE + tu digo tdentiffous ‘ oS 4 tammas on blantspaus cannat be purified Wl tonite. oy 5. Kywands Cannot be apraserlad 0 an idol’ 6 dhe 4 the Ident fos shauld net be rau tan 3! f 5. An Fdontifid Cannet Frclude special arate cep Hy'__' Wnolos ia. @ scanned with OKEN Scanner FP sey » Kapa Uo Cm seul cuaiels nat rane peda vas chan cuape ie tuiy tnbndel Fed fa ft terete cate eb, Lite is that He vauiably (an dtaue ae eae i ate he es 4 tah data b Maqua His be peyarrned dane te 5 re V pees Puiritive on 2 Pata ye dia tp? @ scanned with OKEN Scanner 0 Fab | Aray Eat Sp \ > Pain ty ange abe knawn as fundamental olata type ay ty mast Types of cate Goat! ae Cle up be “tt & Yhuse uM as the . . © Setepr (in 4 supusurts inte " oa nee Mae 7k OK H byt ib ba gat oy al 6 apn Ly int age = 26; , =) ae > ~32768 b = Bt yet ae ia 2 is bt it hee : (an th tan bald que avd Me and ue values put ag tate M- int M=-100 @ scanned with OKEN Scanner Vo Chauncty (ua) ee Gy 9 |bte- 8 is > Moe 9 128 #1a7 Bt teh tee chau nz Rehan’ O saat. oad toe pas lied i) by Sige 7H bys (32 606) ts How 9 aHE- BR & BHELSE 34x10" bb 34x10" S Ww? dal = em: Fp = 08 Pas Sto, runieal valub Inet magpie a igh cope of ; “4g pe tat pert un & Ginn double bas maw poucision ab campaied hb race mane “ida but cups Caste oe meron pS te ae Lik Gn enblly - accarrmedale aad Io 17 igi opto ee | daimal — {psird. : b dy 8 Yee on =; 16 +308 > 1, L-7xI0 by mange > 1-16- 508 i . me ad Oo © scanned with OKEN Scanner > Deutud Sate type \ 9 eid dat au data tal at vdatd pon ty firdemoned oy She, ie) al ge ig 45 tise dat He “hy Bo aus sng, Gg, fe Prapiamenns tre abilly % Mandl helorapen. date pr diuctly peliy mimety, td buatlof canplineff Gam sey, joel ee > Constant, 5 A constant in Cs a waninhle thal (annat be madificd ance it 6 dechiud m be progam ? , including fatagen, plectng int 9 et ent bran v Tee [eo of bw nee doin vaufabte. f ; # Include < étdia. hy ‘ is main() put ("the vate! const pie Pl= 3.14; gens LEM: eae kv] pull ("re wabue of lis: Iy / edwin 0; Ay = ) @ scanned with OKEN Scanner > Girmh alic_Cans bat Lo Loni fios oy used to suqpusort fined wales On puagrams wy gp rs se bapomny “ye tm # opine MAX-SIZE 100 aa > puppacidion places seciomenie Ha. SIE wilh ‘100 jyane conan ee bs IL daw rad baw a ! b dus atc marin bese b me. Hayne PI 34 (I b auplaced ty BH ding prypraces 4 ind tk by Usl see ie ae d mt Hdypine rete undp MAL-SIZE dine May SIZE 140 oi dingy 0 Ot bitter apd by oe ve 21 @ scanned with OKEN Scanner > Vauiable Declauation 4 Ly woriable declauations aus uid 0 vuate waniabls that dow dap. bd unubably declamation (ls tu camper absiel ty vawinbls rma, ood ty ang te compile ofc ern Ud. babe, duman~ ul ape, Se pales inttialiglion - ot = BOs cuir, feat” cal le int a,b, Cy @ scanned with OKEN Scanner Vs Mucins y te ¢ Pa Hindudy, ) Hhelude (a huacegset Dibiactive \ bs She “Tncluwle’ prctuacussen alindti in C i ubed b Include thy Centred a jie oy thay inty yeu buen bya the altual Campilasttan prscess ios 4S his allaues yt ts Use functions, mavias, anstarts and types ctyintel ‘tn tease fil ltin yaa pagpeaun. ve v Syst , : — \ Hinclude < filonaney = aeticdude Catdie-h > > brpeesien dena 4 dtakmot that (onsibé a an epson tind a dunicalen *;'. : b poyoton vows ttn a a Lins atl furdios , um poem auitrmente ten ations. en mM x; N= 10; |] assignment eupluasion pau (*Halo, bln |") feeion ald ups esion tod ub dum = dai aad Bametc. epaasbion Satovunt I = @ scanned with OKEN Scanner 5 Combet nd Atatrnnt. 4 a Wmpaund dtatimerd (alba Kneun asa blk) i a group ef aliments enelased wwitein braces ('{ 3”) tat au, tated a5 4 singh dtatinunt. 4 Wombound diatements ane useful wher you ned tp enccule multi, étatimyats whew oly let, ach ss Conte Abuychous Ske 'f', “ bile) a4‘ fon" ft ' || dlelanatians | btatumpnds j @ scanned with OKEN Scanner S ehaualou fear ts ee Pa \ Auibuneic_Gperatons, : use wpunatns OM usd pager baie wee es. jas 1s Hutipliodion ( by piuisian (/) Fail ie) ty Medulud (*/2) 4 Addition (*) © dubpuction () 2 Ruatlowal opoators | au tous ualiues ous spvotng axe wal OP aoe aia Ls das than | <) a wan on qual (>=) net qual ( ') ei tran 01 yal 9 (<=) by qual oan (>) "ay stan or ba or pie W int acdi id b= 10; W Heouy = a!l>b, 0 Taw. @ scanned with OKEN Scanner © Aaya _epenatons \ * hae, acters exe used te poyatom pital porate * ty hebwun ebay thay &4 fee: aa; we nt a= Ti , ‘9 dagial AND (KX) ely ind ebubl = (43) 8 bd s)/ b fagica ok (I) b tit wor (I) ad Oy 4 Aalgrmort eaitia An absignment opuaten [5 used jor absigning a value wide ee ee tad Bintan. vianlab y= vale’ int a2 8) O Gavthond Adsignment dprratars 4 ay ow utd dip fans that Gupte am cups Gpenation oy an aesigrmort. =,amrat=b > a=atb ==, mxa-=b 2 a=a-b ts, maae=b > a=arb l=, m3 a/=b 9 4=alb = mra'|,=b2 a=alb be @ scanned with OKEN Scanner t 6. ae Oponacten A un aperaiey is an apey ° Adan ube fo oponat ae # shun a raga, > wa minus (—) i 4 uel @ thang, te bi “4, via ag art ip 9 7 pct a ara: id b=-(a; aw pos (+) Dit a=t0 lees YW b--107 5 wey inve matey (+4), eas. al maprusoris tw epunards value tf inuased by dy + an uate nus sry 8 Hoe push - Prem el dro te pole -inuwmnend. Pie Snowe vyntd os +40. : mouments te value been using it. a ge tila & inven 6, Hon 6 add te valu g ind b> +(2) @ scanned with OKEN Scanner * Peat Jnowmond- Aausentid ab att. Ws» : = ut a5 , it batt) Ib ass Value 5 then dB brie mite 0" 6. 7 depumert eperatay(—-) «u i bed Jo decmmse tre value by 4. * by devumed opeLHaton é 4 tus ays: Puc-Bevwment and fast Oecrenunt. + fiy- Qevumutt. dundtid 0b -~ diuments %e value byw using Bw nt a-8/ fais uoamontel 9H, an 15 ep value 4. 2-4 vt 6 a + Pyst- Decwmr a desuments te ale ir usg by a= 5i 5 ven Wis 2 ae Be ia ya i aa @ scanned with OKEN Scanner Sway Gea apaei ; tte ar Tea oliunend ou We " ek ° se thd y ' vauiable & , 1 Muse tae conan aa iu pond b tue, bu fal nat mpnaien we ot tee ofal gra duns Pee. & Cw a Pun} uy b= 18) > Aadussty, opuoiar (F:) wl jd hn i opal mp 1 w. tix @ scanned with OKEN Scanner @ bitwise @hexatau X a aw ude td peoun fos on Indiutdual bits ¥ Bitutoe avd (*) : * porns a sapial AND apuation an eauh ai ap (ovasp- * He Mbult i ‘1’ iy bath bit wat’; abanuise te Hasult BO ww Warts; /[o101 Wt b= 3 Wool! E yd C= ab loool 9,1 bn Atimal * Gitulse ‘OR( |’) S14, 4 ‘al 04 a is pail wuspan - ding bib 9 ee lok ESF A a tw moult 51 2 attadd ane op tu bits b'L' qanouuibh , tu asubt i ‘0! Ww ta=5; 4 010! ut 6-3; Wl ootl Wdc=a]b' I oll! , 1 by decinaf ¥ Giluide XOR (A) Rapa ial XOR[ euctushe Of) epeuatian on each eS frcing bib of the apoaras «bu Mult 8 Lif wally dae op tte bis i ‘1! obleruile Yu sul ig ty one Of @ scanned with OKEN Scanner MW. ¢ : ¥ wt a= 8 Hoot wt b= 3; ool} wl C= arp; H O10 , > 6.b) decaf * Gitude Not (x) * us all te bib 4 ou apenand © @dh '0' betanus 1! and tach ‘1 becamus ‘0! 2 Wta=5/ Wolol Wbb=ea) i 1010 @, Conditional on Sourauy dpenaien. val ap eats an tue epexands. 1 ie cardinal span ib bid ab a tance WA b pywon an Y- ebe desian Wn a Sip Ae Qu. a 4 enpussian. f-Oou,* opasinds felt @ scanned with OKEN Scanner @ Wow _Ghuater. +e utize ww comma apeuotor is dlutde up lias 64 mene Hp.uussi ens. i nt wpa Conep ete pushin 6 i @ scanned with OKEN Scanner

You might also like