Transcription of Programming in C: Basics
{{id}} {{{paragraph}}}
Programming in C: Programming in C: BasicsBasicsCS10001:CS10001: Programming & Data StructuresProgramming & Data StructuresDept. of CSE, IIT KGPP allab DasguptaPallab DasguptaProfessor, Dept. of Computer Sc. & Engg.,Professor, Dept. of Computer Sc. & Engg.,Indian Institute of Technology KharagpurIndian Institute of Technology KharagpurTypes of variableTypes of variable We must We must declare declare thethetype type of every variable we use in C. of every variable we use in C. Every variable has a Every variable has a typetype( ( intint) and a ) and a This prevents some bugs caused by spelling errors (misspelling This prevents some bugs caused by spelling errors (misspelling variable names).variable names).Dept. of CSE, IIT KGP Declarations of types should always be together at the top of main Declarations of types should always be together at the top of main or a function (see later).
Programming in C: Basics CS10001: Programming & Data Structures Dept. of CSE, IIT KGP Pallab Dasgupta Professor, Dept. of Computer Sc. & …
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}