UNIT I: Overview of C
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.
UNIT II: Decision Making and Looping
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 o*****iven number.
Problem 4: Write a C Program to find the greatest of three numbers.
UNIT III: Arrays
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.
UNIT IV: Character Arrays and Strings
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().
Unit V: User-defined Functions
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.
TEXT BOOKS
- E.Balagurusamy, “Programming in ANSI C”, 4th Edition, Tata Mc Graw Hill Publication, 2009, ISBN: 978-0-07-064822-7
Reference Book
- *****he C programming Language by Richie and Kernighan, 2004, BPB Publication, ISBN: 0131103628
- Programming in ANSI C by Balaguruswamy, 3rd Edition, 2005, Tata McGraw Hill, ISBN: 0070681821
E-Resources
- https://www.tutorialspoint.com/compile_c_online.php
- www.cprogramming.com
- www.programmersheaven.com
- comp.lang.cnewsgroup
- www.cplusplus.com
- cwx.prenhall.com/bookbind/pubbooks/deitel
- beginnersbook.com – refer for sample programs