




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Objectives: The objectives of this course is to make students to learn basic principles of Problem solving, implementing through C programming language and to design & develop programming skills.
MODULE I INTRODUCTION TO C LANGUAGE : Pseudocode solution to problem, Basic concepts of a C program, Declaration, Assignment & Print statement, Types of operators and expressions, Programming examples and exercise. Text 1: Chapter 2 Text 2: 1.1, 1.2, 1.3 10 Hours MODULE II BRANCHING AND LOOPING: Two way selection (if, if-else, nested if-else, cascaded if-else), switch statement, ternary operator? Go to, Loops (For, do-while, while) in C, break and continue, programming examples and exercises. Text 1 : Chapter 3 Text 2: 4.4 10 Hours
MODULE II BRANCHING AND LOOPING: Two way selection (if, if-else, nested if-else, cascaded if-else), switch statement, ternary operator? Go to, Loops (For, do-while, while) in C, break and continue, programming examples and exercises. Text 1: Chapter 3 Text 2: 4.4 10 Hours
MODULE III ARRAYS, STRINGS AND FUNCTIONS: ARRAYS AND STRINGS : Using an array, Using arrays with Functions, Multi-Dimensional arrays. String: Declaring, Initializing, Printing and reading strings, strings manipulation functions, strings input and output functions, arrays of strings, programming examples and Exercises. Text 1: 5.7 Text 2 : 7.3, 7.4 Chapter 9
FUNCTIONS : Functions in C, Argument Passing โ call by value, Functions and program structure, location of functions, void and parameter less Functions, Recursion, programming examples and exercises. Text 1: 1.7, 1.8, Chapter 4 Text 2: 5.1 to 5.4 10 Hours
MODULE IV STRUCTURES AND FILE MANAGEMENT: Basic of structures, structures and Functions, Arrays of structures, structure Data types, type definition, Defining, opening and closing of files, Input and output operations, programming examples and exercises. Text 1: 6.1 to 6.3 Text 2 : 10.1 to 10.4, Chapter 11 10 Hours MODULE V POINTERS AND PREPROCESSORS: Pointers and address, pointers and functions arguments, pointers and arrays, address arithmetic, character pointer and functions, pointers to pointer ,Initialization of pointers arrays, Dynamic allocations methods, Introduction to Preprocessors, Complier control Directives, programming examples and exercises. Text 1: 5.1 to 5.6, 5.8 Text 2: 12.2, 12.3, 13.1 to 13. Introduction to Data Structures : Primitive and non primitive data types, Definition and applications of Stacks, Queues, Linked Lists and Trees. Text 2: 14.1, 14.2, 14.11, 14.12, 14.13, 14.15, 14.16, 14.17, 15.1 08 Hours + 04 Hours
TEXT BOOK:
statement-1 // Executable section starts statement- statement- statement-4 // Executable section ends } Preprocessor Directives
STEPS TO LEARN C LANGUAGE Step 1: Before speaking any language, you should first learn alphabets. In the same way, to learn C language, you should first learn alphabets in C. Step 2: Then, you should learn how to group alphabets in particular sequence to form a meaningful word. In the same way, in C language, you should learn tokens (i.e. words). Step 3: Then, you should learn how to group the words in particular sequence to form a meaningful sentence. In the same way, in C language, you should learn instruction (i.e. sentence). Step 4: Then, you should learn how to group the sentences in particular sequence to form a meaningful paragraph. In the same way, in C language, you should learn program (i.e. paragraph).
TOKENS
Qualifiers
getchar() and putchar()
getch() and putch()
Disadvantage of Unformatted I/O
CLASSIFICATION OF OPERATORS Operator Name For Example Arithmetic operators + - * / % Increment/decrement operators ++ -- Assignment operators = Relational operators < > == Logical operators && || ~ Conditional operator ?: Bitwise operators & | ^ Special operators []
RELATIONAL OPERATORS
!= Not equal to 5!=3 returns true(1)Greater than 5>3 returns true (1) < Less than 5<3 returns false (0) = Greater than or equal to 5>=3 returns true (1) <= Less than or equal to 5<=3 return false (0) == Equal to 5==3 returns false (0)
Output: 7 && 0 : 1 7 || 0 : 1 !0 : 1