Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
33 views

C Programming Written Notes 1 Pages 1

Uploaded by

Akash Shinde
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)
33 views

C Programming Written Notes 1 Pages 1

Uploaded by

Akash Shinde
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/ 100
‘compares vs a dexree used “fo VOMOUL —dater opewmaHon , + computers Hand ware soPtnawe Hasdwane ae sottnate — jmvisible @rardwave fs a ‘physical ® softvave fs ah component wrth can | Ensfosahons| S| poem |e constants fe. i ‘ < : ce @ TPES | = ssmairest individual entity oP a Pegs ming ‘janguoge ss called aS te hen.é sFepwosds , opemalers , constants ident ese cvemulles) ave toeone of Cc , ? Z 6) Keyword s : ap * epeaa) nesemved wosd ie peywood Tome hose HSANING Suen LS? +O oT sepsesents [These owe sa peyword in Cc. COMP yer . ‘ — parsh cag (ASteachons . |e operatot " 7 5 f nich eps [sent aS) constant : ea+ «Ss a special symbol A pestcalar spesaten. ene +, *) Se T+ 15 on enbty whose Nalwe 1S jenowdr & Fired. 30 computes poogsam » WE can divesti7 wwote constant value Ge vermalie + “Tt is an enbh whose value 2 not Known os not Fixed, to program - ming , vamidbig ave Whandied through memory, lprsto of c= progsuronmn ene: Programming language 18 dexeloped by Me Deoo’s Ritchie oh AT 7 beli \abowabones USAm IMim lam ole r ALGOL => 1960: BCPL > 1a6F +Mattin Richard | SOOO 8 => laze KE Thompson - (c => #2 ° Dennis ptchie . le %* Geneva) shoudawe of ¢- Progoan |@comments ‘a @preprecessos + Global declasathion. @ main feenchsn, © vees-defined funcon . Ocsroments + sComments sPhonay ata. ou) Daeeterne all _@prsprovexsom s_ ia inciude sedans bs PI CPrecescer Qe — @Grwba) dedavaon: [ Global variate . — @pain Fanchan « |.void main) £ yuser- aefined Ranchons + «Body of user defined Panchen . + [strodure “of simmpié ine < stds'o. h > void main ¢) is Ovanakie dealarahon, [scef of Inshaahan* | @ ep G©procesang- @ur- what? | why | Hers l> jad o Goze Zecca as Tyoid) main =H include = stwie: h> ia : Ee © Ovarabie _deolarahoo | Ore: a oa SB Peecessing « st TEAhIngs eas oor: E : J Nowiable declaration = |;@ata of all acive PBAGPAMS 1S stoved in Pwmmary Memory he RAP oP computes . ; |-this memosy is Rinte 2 shatved by a) AtOgrams . Tresefore it (Ss compul- sosy fo Pee- allocaje memosy fet stowing data. =I programming memasyz is alrocaded trough vomialaie deg) OD . + SxNtOK of yamable declanahon => 7doda — type? vemalie~ name 5 ie | -dala type is a ype aces pele fo ~ be. _ stored = svomalie- naree is BOTS" Vdenhher “giNeD te Permorns } sh ie Nees - ———~To-rheme ave thre dale “ppet- 5 darnentes) dota Hype. ssi ois defined dale ape . * [Fondorrented “dake pepe oa J |sGasic os built-in types of progeamming | engiage ane veltered aS Randamental sti pees [these ase thee Fundamental dake heal Re Cer nae. ee B chatacder cchar) Q @integes — cint) @ loch polo} Nurslcsts CFioad J. choradey Coat): * cAny single aiphabek . symisel oF Lait [is wtePerved ag qaewaden , 'En shott each EeyY of ESplooadd 46 A charachery, [2 26. (A Gh Cigale umes -kepwoord «char: (6 ased Pox chavrader dakar Hype. | @ioteges + ‘ “A WKNE: HUMbET Bhieh does not contain, deeimad point is an integer, COQ Se een 1 keyword “ok 1s used. Ra integer data HBS. ‘ oan ons nambes | “A numbes DAhich confains deaimal pola 5 os Psadion past fs a Poahing 4 print camber Crea number), "Sas A OMS Sere 2 he 1S Oe SO pce a “Keyword ‘Foal’ is axed Fat Freaking pons — Aunrsbken. + |pie: da of data Pe. 5 | chat 10% p Frost syntar » |{peclener = pe eee Aame). |® Chat cv - ¢ ‘ |(@es) ess \ ir —Rroat Yr yaviabie came is identifies ve che-> sen by progqearnmes pssvided some wules mwosk be Fowowed | © Kepresd cam nob vsed as a vam. So NARDe, Bvaviakbre name “should poh seal? with dig . (speva) symbol Ss not ajowed whi yomabie name Cexcept andersore—) , ee) space vs also nok aiiewed wrtni Vamalyte anys = aah "§ io Gnaw ch 7 | int We BRIE ID) NOU ae Ploat 43 5 UT aaveY awenia, TIPS © Wore data “Ape ay ast vavaiabie | declare Hawa Raila moe Tavera a°5 2) oak iad), eT any Trew] $ 4 4 Jaume [Samra [sala Pe dealarse | BOGHOO | | NemmaScle = |e eae e Accephing Values from user phoough Ke¥noowd is sePerred as ZIP. °C provides Faneheo sceanPos Re 119, ope of See " . Pormak shing centains appropmale number. 6f §& appropmate Hpe of Formal specifiers ‘Formed spears ave Food Data Tyre Foumaf Spear Femy © Chat “fo I rt “Je S Poat “)e p syntax | — ee = I “dla omeaniay AT PC sean! C'ndy.d", 2%, 94)5 J oF: Mar in | | i aeant (ord, €%)3 + BD ao! scant Cand ye avs me Bs ee ines Z ScankCerd ) 8 #3 oS waive. : “oR auc 1 we Fow chase CYPS ‘ scant Caicuneieay Jo xawe : me an | lint 963 1 tet Posh tyre scank Ch 1 22) Sanne: . all on lint ser ad Lae dol , ) , 7 + lowteed + “rsploying eee ot eae om = monifos (Uses - eoreen) ‘s sefesred as olf. -€ provides funchon painthoy fom op. TSynbax of panto Putt (message ~ sting West of yanahioy ae ~Message string ending message to be epmoted , fowmad speahers and escape SEQUENCES - “Each charactos of message siHn5 Rc disgieyed 1m CIP as ik 1s epoept format speatieng 8 escape saquences + \Foumet specifiers s- oe sFommal eaMiemg OTe Gol gmmred. | prace of Dowmak Spectres YAN a meSpeahve Varnabie rons st of vosalsles 1s . Depiayed in SRO eS t é\ Feamah spear gia, ; 7 “Escape SLGUENCLY, 4 = ‘Escape sequences at net pan Perown cerais achans ac in Foiousing Feb] | 2 EStCApe Seqneenaey Achon ® ee New Woe. eC m= : Wel space | [7 é Reborn nous [b Back Space © zs Meme 2 aa : ( code iock 6. @ Den ctt. @ Tero =-0 =e 6 WAP fo pant Heo World | > open codeblock > File => News ae fire oR ctrl + SHAE PR. 2 Seka tt inciude = sotto h> ; , yord mean c) el. =e = emt (* RENO world” )3 exnt ite value in cipey + inciude ) ceaite + ) Then save Pel ) ni compile cursenk ps buld . oR (0d prog rank ) ¥ +F Inciude zetdio he ' ) void main c) ) ' pHOtC Peo Wosld)s POOF CAIN] Akash Js ) ls 6) escape sequence snes TREES Su een ‘ ) ; a 5] GIWAP te vead ome injeges ourker § , vyold Maing ; t ere poe deMase int 2 pen Rema Sg) scant CO" Kd, & 3 Scan? use csr ze prec rd 7, 2)d5 £ aR boat te include vord main co) Ne: | / | OR _ RF inciede Ivord meatn 7) BE sé (Saintes = | panthC\n Eaten the nunmlset ? 5 4 stank yd) Pee} __ | PANNE CInyou numewee ei, os =a @ [WAP Rh Read owe stegene F pRat Theis Nees IS SIP. ae > ] indude Zewio n> s [Noid main oc a Irae pulnth \neotes Tesh DUMeT "5 Stanlt yd" 2K )s paAotC<\NEntes second nambsrn) ; Scant C arayeentny ~ pmo (\npimst sumbersyda, 2D), POHU CH send HumbeT a Vd, as ¢ on FHn clude = stdio n> void maind) a Ok Ys prothc in ester twa numbers yi scanhenydid €1€4); ~~) ©) Vamdual® deo coano;rt- ls Dla-tyee vamatere narve > in [charg] Flodd $1 Nz Yipee Pea meme ho aes EHNA CNOFi*St nambSs Ee | pant Cs \qsecond number =yd™a)5 => FF inctude Zenda b> Iwap to sead one chavader one 1ofeger & one Ptoal Vases FheD print aly sadues ‘ea ome i mien |void main o) chat chy ipo Proat 43 PTOU CIN entes the chamadler? 5 Sscanh Come ing ch 3 POOUC\nEnten the suwmbes?)5 Scant Cn fd, RL )5 pAat (inenten pre Poet ouMber ), Scanh CAP Ba; Lae ae eee el ae Mee) [atk yl aon PONE CIN charaoter 70%, ebIS PTAC \O Number 24d", 7) PBA Cs inFldat = WPS ayy i ~ [poocessiNg : - : | ® opersators : ; ce opesaloS is ai epectal symloe’ whieh wepTesents PET eiay operates 00 doakee cVaues given te operabes f= opevabion ate vrefemted ae operands , a Ve: ee 3 ris a Y operands wert. ° Theme are sree types of operates © @onity operates 1S Tt takes only ne —opasahor - = © Binoy openator “T+ fook two cpesalora, é 5) Jeane y opSrahors % . cit takes thwes open Cyatues) 4 @®Expzessioao ‘ A Stabement of opsmahon anak confauny S operajang 2 prehe spemands 1S weletred ag cxpoession. sfregrsome est of compules enalumes expression 2 gu7emaites accusare, we salt. 1, a a @yanou.s operatone Gre AS Po\oud : ‘li @ Assignment opesahos C=) ¢ ~tt+ vs denoted oy symlbo\) « =’. ott vs binasy OPSEGIOT « 7) Va @wTnihadize Vam@lyes ; @ stove vesush} in Cee @ Copy waive of one vamabkie ~ fo anothes — [Tr has sight fe thE a Ssodabvily sTF has lees paowtp. ae ae) Re ee ee heat naa fille ee syntan : 4 Vomaate = VUE 5 oR vamalie = expression | il ok 99 a ee | @ WAP tO sead Values of two integer Nemable in memory R soap these _|Neiwes. —S FE Incdude : void main c) 1 eo oe PBORCANEnten two wc oe scanf( te xdud™, Rae .€4)3 tepenegd - oCa yy see PHOLEC\9 2% ad “0d; : pant C1 s\n yd eee Bs OR EF inciude : geese [void MAID C) pe dh : VOU Caras tang a priNtEC\n Eaten two ar eEeeas Sean? Co rd”, Fe /F3)5 SUM = K+Q5 as 3 PUSH Cp Addon erd > Sur Js r i OR HE include 7 Void mains) Z int 9. sur; pant Ente two integess 75 scank (yd Td" £1 FV sum): ty; PHOte (i \o Addition of sd Rnd syd Xt 5w0 & ra ang: [WAP te vead AWo Integens cad aaa, : anes sulostvacdhon. @ [WARE _ veod Go numbes & caiatiate its squawve 33 el) as cuoe , includeastdo h > Wyerd mainc) tt el int 6) sq7 cahe 5 ie pone C*\nEntes +he Horn best | 3 _seanteyd « "€0)5 SH= AAO; cUbe = Hanard; POAC (Heme Ponte \Heabe 27d, caloey; @-|WAP to read sadus ef Ase 4 caalade its aveaq ag Od ag PSO MED | at inciude votd marn oc E floah ow a PS j PAMEC AH Estes the wandius J; seankeyP, go 7; ’ Qt ibn TAD 4 ; P= DAS HATS : ORO \HAweR at ane protec: \npsmmeten a4? 85 ' % : @. NAP fo send jengin 4 breadth of rechinne snen caicslare ite area as OR ay posmeren | eo (bat apt cashing t © convemsien of a value From one | type to another Wee vs cePenr— ed as type cashing. eThere ave {Wo trpes of Hype costing. _ Ormpiicit Cautomahe) tppe casting . @Expiict Cfoweefaiy) HEE casting. ‘al al OLmprat Cambomehe) tyee cashes: ilbee see) assignment opemahon , if! pe ot value does not _mateh with Hee of vasialie “then complet - Noid mato) IAS 4a Zi Hore: Pioal ang: PONE \HEntes Tree ACR GOTS OY scanPCry did td, Ox Fs coe Gao) Cote = REY HE! ae ae _ ong = totet | a0 PEOFE IW MGHOD = 7.49, taba) 5 5 PHOthC 1m Average =P ANG 35: ‘ os @: WAP fo wead pwo Iniegewe then caicalate tyes addition, subgiradhdo . mab pit capo |€ division _ AFincdude ' Void maine) — Poat by hi ay panthe \pEoten base & height: 7 scant c“vPsP, Bo, €y5 oa ros xboxh3 PBoteCinAwen of solange AP 7) tees WAP to sead dezen sale oF kat R ealemiake cost of Gone wSanana . HE include z<6tdivo- A> vod ~~ maind) A Poay wae, cost 5 panree ae dozen sate"); scank Cerf 1, Rovoste 15 cost = wake ve : ’ prnere “Weosk or lene baneanccsnP ; cost); us $ 4 b ‘|yepp te seed dozen «wate of pananer cabriate cosh sats given eae fis» NUDES, — a einctude ia a yord man 0 ; ican sls eat sale CoC cee —/— Eindude 2efVoh> void maine) — Post Fic ponte inEntes temp 49 Fahrenheit"); , scant ci Paiieen De , 2 Wa 32) x5 19.08 Nol pant! Cas temp in ceheius =v Bee J > 6 |WRe to aead a Aumbes & doskie it : Vad we x > AY inctude = stdio h> > vord maine } i " v idea . pantt(* \HEstes the numbes I; scankt syd", 8o)5 Se pris PMNLT(\H Pambess =~ 975 , it 6. WAP te wead a nurker € sepjace by its square (omen OF arjinclude 2sthioh> void main o> 4 ink 95 b evntht"\nentex tre mre rei scankty-d') &€n95 (NE SDN ny pang C\0 Number=7dy, O95 >to naga

You might also like