Lecture 1_ Introducing C & Fundamentals
Lecture 1_ Introducing C & Fundamentals
CSE 4107
Structured Programming I
Asaduzzaman Herok
Lecturer | CSE | IUT
[email protected]
Programming Language
What is Language?
Language is a mode of communication that is used to share ideas, opinions
with each other.
Source: https://www.javatpoint.com/programming-language
Source:
https://medium.com/@ajuatahcodingarena/generations-of-programmi
ng-languages-bed30d19ea8e
Source:
https://medium.com/@jleveewhite/an-introduction-to-assembly-langu
age-8144ce1dfb0e
Source:
https://medium.com/@ajuatahcodingarena/generations-of-programmi
ng-languages-bed30d19ea8e
C++
Source: Reddit:r/ProgrammerHumor
Standardization:
● During 1970s and 1977-1979 C continued evolving much. In 1978 first book on C was released.
● By 1980 C expanded beyond the UNIX OS.
● US standard for C began in 1983 under American National Standards Institute (ANSI). This version is referred to as
C89 or C90
● Later the standard C99 came with some major differences from C89
● Today (3rd Sep 2024) the latest standard of C is C23.
Source: C Programming Modern Approach Book
Strength:
● Efficiency:C programs can run quickly in limited amounts of memory.
● Portability: C programs are portable from one type of computer to another. Thanks to the C compilers being small
and easy to write.
● Power: Large collection of data types and operators.
● Flexibility: Flexible to use from System programming to all kinds of applications from embedded systems to
commercial data processing.
● Standard Library: Contains hundreds of functions for different task.
● Integration with UNIX: Is powerful with combination of UNIX (like Linux)
Source:
https://www.memelate.com/hijibiji-hizibizi_anis_
zahid-hasan_meme-template/
Printing all solution to Eight Queen problem
● Difficult to modify: Lacks the feature of Class and Packaging for better maintainability.
Source: C Programming Modern Approach Book
● Directives
● Functions
● Statements
● Printing Strings
● Blocks
● Format String
● Reading input:scanf function, format specifier.
7 Tokens. Token 1 and 5 are identifiers, token 3 string literal, token 2,4,6,7 are punctuation tokens