Intro To C Progra Basics Requi
Intro To C Progra Basics Requi
Intro To C Progra Basics Requi
Introduction to C
Programming
Kavitha Bai A S
Asst.Prof
Department of Computer Science & Engineering
GCEM, Bangalore
E-mail ID: kavitha_cse@gopalancolleges.com
Course Overview
Credits 03
1. Mother language : C is often called the "mother language" because it is one of the earliest and most influential programming
languages. Many modern languages, such as C++, Java, Python, and JavaScript, have borrowed concepts, syntax, and features
from C. It has significantly shaped the development of programming languages that followed.
2. System programming language: C is used extensively in system programming, which involves writing software that interacts
directly with hardware and system resources, like operating systems, device drivers, and embedded systems.
3. Procedure-oriented programming language: In procedure-oriented programming (POP), a program is split into smaller
sections called functions. Each function does a specific task. In C, the main program is divided into these smaller functions,
making the code more organized and easier to follow. This way, you can work on each function separately, write it, and test it on its
own, which helps in finding and fixing errors more easily.
4. Structured programming language: C supports structured programming, meaning it allows for the development of clear,
logical, and easily understandable code. It emphasizes dividing a program into blocks or modules (like functions) and follows a
top-down approach. This makes the code more readable, maintainable, and less prone to errors.
5. Mid-level programming language: C is called a mid-level language because it has features of both high-level and low-level
languages. From a high level, it allows you to write clear and organized programs (like structured programming) and work with
data easily. At the same time, it also lets you do low-level tasks like directly managing memory and doing bit-level operations,
which are important for working with hardware and system resources. So, it’s a mix of both worlds!
Why should we learn coding?
⚫ Coding or Programming is a way in
which a human like you or me would
communicate with a computer.
⚫ When you would like a computer to
perform some tasks you have assigned,
the language you need to use is called a
coding language.
What is this subject prerequisite?
⚫Knowledge on flowcharts,
logical and relational
operators and few
mathematical concepts like
quadratic equations,
trigonometric functions.
Example programs – simple calculator, finding largest of two number, finding number is odd or even etc
Course Syllabus
MODULE 3 :
Functions: Introduction using functions, Function definition, function declaration,
function call, return statement,
passing parameters to functions, scope of variables, storage classes, recursive functions.
Arrays: Declaration of arrays, accessing the elements of an array, storing values in arrays,
Operations on arrays, Passing arrays to functions
Basic Algorithms: Searching and Sorting Algorithms (Linear search, Binary search,
Bubble sort and Selection sort).
Example Programs: Finding Factorial of a positive integer, GCD of two numbers and Fibonacci
sequence, algorithm implementations
Course Syllabus
MODULE 4 :
Two dimensional arrays, operations on two-dimensional arrays, two-dimensional arrays to
functions, multidimensional
arrays.
Applications of arrays and introduction to strings:Applications of arrays, case study with
sorting techinques.
Introduction to Strings: Reading strings, writing strings, summary of functions used to
read and write characters. Suppressing input using a Scanset.
Example programs: string application programs, pointer implementation
MODULE 5:
Strings: String taxonomy, operations on strings, Miscellaneous string and character functions,
arrays of strings.
Pointers: Understanding the Computers Memory,Introduction to Pointers, Declaring Pointer
Variables
Structures: Introduction to structures
Example Programs: structure creation ,read and write data in file
Course Outcomes
• CO1. Elucidate the basic architecture and functionalities of a computer
and also recognize the hardware parts.
• CO 2. Apply programming constructs of C language to solve the real
world problem
• CO 3.Explore user-defined data structures like arrays in implementing
solutions to problems like searching and sorting
• CO 4.Explore user-defined data structures like structures, unions and
pointers in implementing solutions
• CO5.Design and Develop Solutions to problems using modular
programming constructs using functions
Expected classroom behaviour
• Maintain good behavior.
• Expected to be interactive.
• Stick to deadlines for assignment and quiz submissions.
• Be serious about attendance
• No disruption in class.
Continuous Internal Evaluation (CIE)
MARKS
IAT (3) 60
ASSIGNMENT (2) 20
1. The question paper will have ten questions. Each question is set for 20 marks.
Marks scored shall be proportionally reduced to 50 marks.
2. There will be 2 questions from each module. Each of the two questions under a
module (with a maximum of 3 sub-questions), should have a mix of topics under that
module.
3. The students have to answer 5 full questions, selecting one full question from
each module
Assessment Details (both CIE and SEE)
weightage Min marks Max marks
The weightage of Continuous Internal Evaluation (CIE) is 50% and for Semester End Exam (SEE) is
50%. The minimum passing mark for the CIE is 40% of the maximum marks (20 marks). A student shall
be deemed to have satisfied the academic requirements and earned the credits allotted to each subject/
course if the student secures not less than 35% ( 18 Marks out of 50)in the semester-end
examination(SEE), and a minimum of 40% (40 marks out of 100) in the sum total of the CIE
(Continuous Internal Evaluation) and SEE (Semester End Examination) taken together.
Textbooks & Reference Books
Textbooks
1. Computer fundamentals and programming in c, “Reema Thareja”, Oxford
University, Second edition,2017.
Reference Books:
1. E. Balaguruswamy, Programming in ANSI C, 7th Edition, Tata McGraw-Hill.
2. Brian W. Kernighan and Dennis M. Ritchie, The ‘C’ Programming Language,
Prentice Hall of India.