0% found this document useful (0 votes)
2 views10 pages

Programming Notes Better Version

The document provides an introduction to the C programming language, detailing its history, key features, and basic structure. Developed by Dennis Ritchie in 1972, C is a procedural language known for its efficiency and low-level access capabilities. It also covers data types, functions, and the importance of standardization for portability across different systems.

Uploaded by

sofori149
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)
2 views10 pages

Programming Notes Better Version

The document provides an introduction to the C programming language, detailing its history, key features, and basic structure. Developed by Dennis Ritchie in 1972, C is a procedural language known for its efficiency and low-level access capabilities. It also covers data types, functions, and the importance of standardization for portability across different systems.

Uploaded by

sofori149
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
Introduction to € Programming. History of C - C€ was developed at Bell Labs in 1972. ~It was designed by Dennis Ritchie as an evolution of the - Derived from an earlier language called BCPL (Basic Combined Programming Language). — Unix operating system was rewritten in C, demonstrating its power an as efficiency. Key Features of € * Procedural Language — C follows the procedural paradigm, using functions to structure code. + Static Type System - Every variable has a specific data type that is known at compile time. * Low-Level Access - Allows manipulation of bits, bytes, and addresses for system-level programming. + Fast & Efficient — C code is fast due to minimal runtime overhead mek) it suitable for performance-critical apphcatio rg — C has a rich set of built-in functions for performing a variety of common tasks. — € programs can be ited and run on prog Sor pat different platforms with Jittle or no modification G Language Notes Tntroduction to C "Developed by Dennis Ritchie in 1972 See oremst * Fast & Efficient Basic Structure of C Program ‘Aincledecstdin, b> int maint) t printf(“Hello, World!'); ——— Preproveasor Pirective return 0; -—————————. Main Function ) Print Statement (Prosstartade sagar Smastercede separ Data Types in C = Primary Date Types: ‘int, char, Float, double * Derived Dato Types: * Jump: break, continue, goto Functions in C * Built-in Functions (e. printf, seant) * Uree- defined Functions, + Function Syatax: + ratirn type Flnction esomé! parameters } al HU toda (Gmasterenty spar Eneaiteredi caja ry ancl Eiiola tion of ra — 1+ was _aevelapedt inthe _farly 1920s | _Demeis Citerje at Borr Laks. ted sias_initiaily Created as a farnguage ty | ince tie _Linix operating Systemt. —— —4> As lnts. gained pomstarity .s0 did 0-Ia the tos. the first official specification of __ thie 0 danguage.. tatted “KGRC. was published fy Brien kernighan anal Dennis Mibenie. i Tes Specification tecarne the foundation for C$ _wiiispread’ se ana furtier alvelepment. +> Gute tates._the Strnerican National Standantt —_Flnstitute Cees.) Standardized the Camguage._ sulting the Creation of Aner Cer Caq. > Tis Stanclardiization ensured portability and —.—_Compatibitity_of © programs acress difyerent—__ Systems _ ae pe. Mie Yar. C fas evolved with the ib — hemes 2h det Tunes ole. de Tawa Seript loepe Arrays aad Obreake te repeat carlin action. m mumbo tie xyes Or whl a Ceerlnin condabien. tn howe Type af Loops wineee, otp. Remiave fe i ened Mal abeleemeetts Ae that m Corsten livin dt peuntetlnegi aud it irs ote mara veer Lach: Has eorditiov. tina true. the Cored titan Ik elaaanbtal He. Laop auad of mtv Vaal “Hine Het condition. i met dre, Hat boop. wail mewtie tsi. Wc wit fo jrvtle a tsouy. fe Eoin Hae be. There. an tae | Wiens te do its ! : dong Hee ward brani, Cheri vine tmriale intide: Hae lao Ht comageas the test conection te evahiale. [Link]-. fe coreful te vet crembe. ondlecs loops. were. Grutlage to ae hdl THe. difference. bebaeer st cing see. a padi dhig te. Kons Yun nretd to vrai posrh cules aonay, fo vel wattle, Arrays Aor: ak Hime lf Aah no a —— C++ Hrogramming Notes class Car { public: string brand; int year }; > public class i = 213) ——>_ int year }; + Data Types: uottsecreralation int, flot, char, bool, string, for (i < 10(++)) {Loop 0-9) for x=5; {cout ORIENTED —pi A on Oe” « ete ttic mp Thapemaatentval ining te —lWhat_ ja 2 Te 4h daaalaped bana Tikka ol ALR min Fecal Tr a ly | byl’ ote | ut PUA ae b binpeam emiledded [figs re fk Jd iy H Scanned with CamScann lomant of the a solth the giver of the slaty, Ss aaas o a By autores an aerty 8 program. oer dpecifier tha type ef the clestenh ged tha hire kes tf elements. 2 4 4 a. ore arene ste: ; senile ' engl Wmerecorat @wtrmy- The gaming, sant be an ity) conctunt .gealey, thin tem ase type cam be ae valid “cain é dunble balance [re]; tot enanet £51; BOP jee com Mnittatice an areay Oy anny index of cach lament: mavksfel © ae; iiieitiatisaliOn of pert marhs[r) = ba; m@vksfa) = om) nated re marksfa] » 78; ca BOP” Wie cam soatintine the € af include a at ake Hot of ieee Cet petals 6 * tnt feo; Tm peck pat geet lh int market], °° gectnwution"/ | pequieomind te degine the riarhsfe) = 60; / dedtialigatien *) [pic mvt lee fe J a eR es markt fe] > 18: warksfa) © Oy wrarksre) 7 We, oe | Gop ez wot mark(a)® fao, a0, Ce ge ee attnn gy ded) | tenvesnal ©! 3 par colin”, marker ream forverured ft jongueoe produces efficlent prea yvormnt * Jr cam Aang pont - seve fan bé compl/td on @ yorlery of Computer olartoemns Mt Author > @ apol. kaenar 4# inttude int maint print £ ("Heo wierd |"): yerurn @: 2 Comments In € MOTED Gacieay (TELE EAE) Comments are used yo Indicate fomerhing ¢O pne pexren reading phe Code. Comments are peearey Hike a blank by fhe complity ang dé not change enyrhing in rhe code gerual meaning. * There ave (WO types Of Comments: ik Linge Une comment Qh Ayia = Lind Comment 4F Include int mainl i { df ends tf @ tingle (tne comment prince Hewo Atul ")s f* gnir it mult fine comment # | return 6; ATUL eermnd {i srienoid

You might also like