[go: up one dir, main page]

0% found this document useful (0 votes)
480 views5 pages

?C Programming?short Notes

?C PROGRAMMING?SHORT NOTES

Uploaded by

Yağmur Yiğit
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)
480 views5 pages

?C Programming?short Notes

?C PROGRAMMING?SHORT NOTES

Uploaded by

Yağmur Yiğit
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/ 5
C ProGRamminG * SuorT NOTES ~ Dhtroduetions :- C programming is a geneyal - purpese, Procedural , imperative computer progvamming language cteveloped In 1972 by Dennis 4. Ritchie at tne Gell Telephone Laboratories ¢o evelop ¢he UNIX operating system. Features of C Language :- grut_ kumar (rvxeom)- ° Simpte * Machine independent or portable Mid - level programming Janguage Stvuctured prograrmm|ng language Rich Library Memory Management fast speed Pointers Recuxsion Extensible Leomnk CLINKEDIN) Advantages of C | ° Eafy ¢o (earn ° Structured language * It produces efficient: prveg vans. * Jt can handie sow - level activities * £t can be complied on @ variety Of Cornpurer platforms . Fitst_c Progyam :- /] Aurtnor : @ atul_ kumar 4 include int main( J print F (“Hello wlorid } a yeturn 0; ATUL kumar (LINKEDIM)- omments In C i- NOTES GALLERY (TELEGRAM) Comments are used to Indicate something ¢0 the person reqding tne Code. Comments are f¢reared 1iKe 9 blank by the Compiler and do not change anything in the code L actual meaning. These are {WO types OF Comments: y- Singie line Comment 2). Multi - Line Comment - 4k include int main(){ fl trig 18a Single line Comment prince (“Heo Acut "); /* tnis if mutel line comment #/ Teun ©; By ATUL LUMAR (KINKEDIN ). Varhables A varyiable if @ name of ¢ne memory focation. s+ fs Used to sore data. Its value can be changed, qnd /t Can be reused many dimes - Ex int a charb Float Data type In C i- norer caceny (Teregaara) A data type Specifier the type of dara a variable can Store such as integer , Floating , chayacter, etc. Dara a in Oe fsimitive Non- Psirltive [> array t—> Structure > enum * Double b>» union L_» Pointer Control Statement _: There ave tne followlng varients of if Starement In ¢ language - + SF statement ° ge- else statement * SF else - iF ladder + Nested /F AquL wmAk (LINKEDIN). IE Spatement ‘te FF fratement if astd (0 chew fome given congpyen aad Perferm fome Oferstions elepénding eipon phe correcinests oF thar gondi#en - H Author: @qcul eemar NE tuntax iFfexpression) { tf cocte - ‘The jf -else sparement if wed fe perform ne operations based on sere Spee Lendit'en. Fhe Operations specities in GE glock ave aeecuttd ff and eniy fF phe sien Condi ton ig pyue; Hf Author? @arut comoy HF Syntax iF Cempyestion) { "ge brock dee t if @ize B1Otk A fommen pregramming construct that it defect upon merited Wig ghe iF-ebre-j£ jaader- ft soaks KE thie. The Conditional ex Prettiens are evgiuartd From he pop ddtenwerd, Ar goon OF 4G grue condinon js found , fhe fhatement arrociafed eth Ih iy executed , Gnd phe reff Of the if bypasred: N Auchor : @ atul—komar. IF Ceondition 1) € VW condiion 4 is ¢yue } else if (condition 2) € I condition 2. lt ¢yue an iF (condition 3) € W condition 3 is true W Code to be executed if aii the ene are False Q Hae cae GSTEGEATD Nested i Alested iF In C progyamming in placing if statement tnside another IF Staternent. nested if In C je relptul if you Want #2 check the Condition intide a Condition. JF elre sthatement pwints statements based on the expression result (Rue , Face). Sometimes pie have to check even further cohen the condition ig TRUE. [| Author: @arul_ kumar MW if Syntax iF (expression) £ WTF block 3B ene ¢ MW else block mak CLINISGDIN)

You might also like