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).or a function (see later). Other types are Other types are charchar, , signedsigned, , unsignedunsigned, , longlong, , shortshortand and and KeywordsIdentifiers and Keywords IdentifiersIdentifiers Names given to various program elements (variables, Names given to various program elements (variables, constants, functions, etc.))
Programming in C: Basics CS10001: Programming & Data Structures Dept. of CSE, IIT KGP Pallab Dasgupta Professor, Dept. of Computer Sc. & Engg., Indian Institute of Technology Kharagpur
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}
Introduction to the C Programming Language, C programming, Basics, Visual C# Programming, VISUAL C# PROGRAMMING BASICS, Programming with Robots, Programming, Basic Programming Concepts, C Programming Tutorial, System Programming, Visual Basic Programming, Visual Basic, C Programming Guide for FRC, PIC microcontrollers for beginners too, PIC microcontrollers, for beginners too, Summary of basic C++-commands