History of C – Importance of C – Basic Structure of C Programs – Programming Style – Executing a “C” Program – Constants, Variables and Data Types: Introduction – Character Set – C Tokens – Keywords and Identifiers – Constants – Variables – Data Types – Declaration of Variables Problem 1: Create a C program to find the size of int, float, double and char data types. Problem 2: Write a C Program to find out quotient and remainder and print result.
Introduction – The WHILE Statement – The DO Statement – IF-ELSE Statement - The For Statement – Jumps in Loops Problem 3: Write a C Program to find the factorial of a given number. Problem 4: Write a C Program to find the greatest of three numbers.
Introduction – One-dimensional Arrays – Declaration of One-dimensional Arrays – Initialization of One-dimensional Arrays - Two-dimensional Arrays – Initialization of Two-dimensional Arrays – Multi-dimensional Arrays Problem 5: Write a C Program to find the sum of array elements Problem 6: Write a C Program to sort array in ascending order.
Introduction – Declaring and Initializing String Variables – Reading Strings from Terminal – Writing Strings to Screen – Arithmetic / Operations on Characters – Comparison of Two Strings – String-handling Functions Problem 7: Write a Program in C to handle any 3 string functions. Problem 8: Program to find the length of the string without using strcat().
Introduction – A Multi-function Program – Elements of User-defined Functions – Definition of Functions – Return Values and their Types – Function Calls – Function Declaration Problem 9: Write a program in C to perform any 3 arithmetic operations. Problem 10: Write a program in C to check whether the given number is prime or not.
Reference Book:
1. The C programming Language by Richie and Kernighan, 2004, BPB Publication, ISBN: 0131103628 2. Programming in ANSI C by Balaguruswamy, 3rd Edition, 2005, Tata McGraw Hill, ISBN: 0070681821
Text Book:
1. 1. E.Balagurusamy, “Programming in ANSI C”, 4th Edition, Tata Mc Graw Hill Publication, 2009, ISBN: 978-0-07-064822-7