Basics of C programming

1. Sep 2011
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
Basics of C programming
1 von 39

Más contenido relacionado

Was ist angesagt?

C tokensC tokens
C tokensManu1325
Functions in CFunctions in C
Functions in CKamal Acharya
Introduction of c programmingIntroduction of c programming
Introduction of c programmingTarun Sharma
Break and continueBreak and continue
Break and continueFrijo Francis
Programming in C Presentation upto FILEProgramming in C Presentation upto FILE
Programming in C Presentation upto FILEDipta Saha
Pointers in C ProgrammingPointers in C Programming
Pointers in C ProgrammingJasleen Kaur (Chandigarh University)

Similar a Basics of C programming

C introC intro
C introKamran
Fundamentals of c languageFundamentals of c language
Fundamentals of c languageAkshhayPatel
Learn CLearn C
Learn Ckantila
F# 101F# 101
F# 101Chris Alcock
python and perlpython and perl
python and perlMara Angelica Refraccion
C programming_MSBTE_Diploma_Pranoti DokeC programming_MSBTE_Diploma_Pranoti Doke
C programming_MSBTE_Diploma_Pranoti DokePranoti Doke

Último

Product Listing Presentation-Maidy Veloso.pptxProduct Listing Presentation-Maidy Veloso.pptx
Product Listing Presentation-Maidy Veloso.pptxMaidyVeloso
Getting your enterprise ready for Microsoft 365 CopilotGetting your enterprise ready for Microsoft 365 Copilot
Getting your enterprise ready for Microsoft 365 CopilotVignesh Ganesan I Microsoft MVP
How is AI changing journalism? Strategic considerations for publishers and ne...How is AI changing journalism? Strategic considerations for publishers and ne...
How is AI changing journalism? Strategic considerations for publishers and ne...Damian Radcliffe
Chandrayaan 3.pptxChandrayaan 3.pptx
Chandrayaan 3.pptxPrasunJha12
Navigating the FutureNavigating the Future
Navigating the FutureOnBoard
Knowledge Graphs and Generative AI_GraphSummit Minneapolis Sept 20.pptxKnowledge Graphs and Generative AI_GraphSummit Minneapolis Sept 20.pptx
Knowledge Graphs and Generative AI_GraphSummit Minneapolis Sept 20.pptxNeo4j

Basics of C programming

Hinweis der Redaktion

  1. We can also declare and define a variable in single shot like this. int a=10;
  2. Format specifiers %d is the format specifier. This informs to the compiler that the incoming value is an integer value. Other data types can be specified as follows: %c – character %f – float %lf – double %s – character array (string) Printf and scanf are defined under the header file stdio.h
  3. While – Entry controlled loop Do While – Exit controlled loop
  4. Header file to be included is string.h
  5. Header file to be included math.h
  6. For assigning more values we need to create an array of structure element like this Struct Person { Int id; Char name[5]; }P[10]; P[0].id = 1; P[0].name = “saran”; P[1].id = 2; P[1].name = “arya”; And so on till P[9]
  7. typedef struct student { int id; Char name[10]; }s; Now I can put s s1,s2; Instead of struct student s1,s2; //In case typedef is missed in struct definition as below struct student { int id; char name[10]; };