Computer Science and Engineering covers the basics of computers and C programming over 5 units. Unit 1 discusses fundamentals of computers including components, classifications, and number systems. Unit 2 covers algorithms, flowcharts, and pseudo code as well as the basics of the C programming language. Unit 3 discusses arrays and functions. Unit 4 focuses on strings and pointers. Unit 5 examines structures, unions, and file handling in C. The course aims to provide students with a foundation in computer fundamentals and an introduction to programming in C.
1. Computer Science and Engineering
Basics of Computer & ‘C’ Programming (CMP-104)
L T P : 3-1-0 Credit: 4
UNIT 1: Fundamentals of Computer (8)
Computer: Introduction, Computer generations, Components of PC, Classification of computers and storage devices.
Software: Introduction and types of software, Overview of operating system.
Computer languages: Introduction and generation of languages, Translators.
Number system: Binary, Decimal, Octal and Hexadecimal
UNIT 2: Algorithms (10)
Flowchart: Components of flowcharts, Design of flowchart for various problems.
Algorithm: Definition, Characteristics, Development and uses of algorithms, Recursive algorithms.
Pseudo code: Definition and use.
Elements of C: History, Introduction to C programming language, Structure of a C program, Compilation and execution
of C program, Data types, Variables, Constants, Identifiers and keywords, Storage classes, Operators and expressions,
Enumerations, Macros, C Preprocessor, Control statements and loops.
UNIT 3: Arrays (6)
One dimensional and multi dimensional arrays: Declaration, Initialization and array manipulation, Array as parameters.
Functions: Definition, Function declaration, Types of functions, Function call, Parameter passing: Call by value, Call by
reference, Recursive and string handling functions.
UNIT 4: Strings (8)
Strings: Initializing, Assigning values to strings, Converting strings to other types, Library functions for string
manipulation.
Pointers: Pointers & addresses, Pointers & arrays, Pointers & function arguments, Address arithmetic, Character
pointers and functions, Pointers to pointer and array of pointers.
UNIT 5: Structures & Unions (8)
Structure and Union: Definition, Initialization and assignment of structures, Unions.
File handling: Creating a data file, Opening and closing a data file, Various I/O operations on data files.
Text Books:
1. P K Sinha, “Computer Fundamentals”, BPB
2. Balagurusamy, E programming in ANSI C 2/e, TMH
Reference Books:
1.Complete Reference ‘C’, Herbert Schildt, BPB Publications.
2. A book on C, Era Pohl and Kelly, Pearson Education.
3. Kanetkar, Yashvant, Let Us C, 4/e, BPB publications.