Introduction To C Programming
Introduction To C Programming
Programming
3
Output, Input, and Variables
Computer programs
Output – data that is Input – data that a Variables – storage
typically follow 3 steps
generated and program receives locations in memory for
displayed data Input is received
Some process is performed
on the input
Output is produced
1-4
Variable Declarations
& Data Types
• In C:
– Common Data Types
• char: single character
• int : an integer, no fraction
• float : real numbers
• double
1-5
Structured programming
*https://en.wikipedia.org/wiki/Structured_programming 6
Advantages of Structured
Programming Approach*
*https://www.geeksforgeeks.org/structured-programming-approach-with-advantages-and-disadvantages/ 7
Compilation of a C program is
a multi-stage process
Stages of
compiling a
C program*
*https://www.faceprep.in/c/compiling-a-c-program/ 8
© 2016 Pearson Education, Ltd. All rights reserved. 9
2.1 Introduction