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).)
–– ‘C’ has an equivalent integer value while “C” does not. Declaration of Variables •• There are two purposes: 11.. It tells the compiler what the variable name isIt tells the compiler what the variable name is.. 2. It specifies what type of data the variable wilIt specifies …
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}