C Programming Lab
C Programming Lab
I-B.Tech I-Sem
Course Objectives:
To Introduce the student to simple linear and non linear data structures
such as lists, stacks, queues, trees and graphs
Course Outcomes:
At the end of the course, the student should be able to:
Design C Programs.
Exercise l
Write a C Program to calculate the area of triangle using the formula area
= ( s (s-a) (s-b)(s- c))1/2 where s= (a+b+c)/2
Exercise 2
Write a C program, which takes two integer operands and one operator
form the user, performs the operation and then prints the result. (Consider
the operators +,-,*, /, % and use Switch Statement)
Exercise 3
Exercise 4
Exercise 5
Write a C program to generate the first n terms of the sequence Use the
summing series method to compute the value of SIN(x),COS(x)
Exercise 6
Exercise 7
Write C Programs for the following string operations without using the built in
functions
Exercise 8
Write C Programs for the following string operations without using the built in
functions
Exercise 9
Exercise 10
Write C programs that use both recursive and non-recursive functions for the following
Exercise 11
Write C Program to implement the arrays of the structure and arrays within the structure
Exercise 12
Examples which explores the use of structures, union and other user defined variables
Exercise 13
Write a C program to count the number of characters and number of lines in a file.
Write a C Program t merge two files into a third file. The names of the files must be entered using command
line arguments.
Web Links:
http://www.c4learn.com/
http://www.programmingsimplified.com/c-program-examples