C&DS Lab Manual
C&DS Lab Manual
PREPARED BY,
A.NUSHRATH FATHIMA,
LECT/CSE
DETAILED SYLLABUS
Contents:Practical
PART – A
1. Write a simple C Program a. Print your Name and Address b. Find Simple interest and
Compound interest.
2. Write a C program to swap two variable’s using (i) third variable and (ii) without
using a third variable.
3. Write a program to find the largest number between given three numbers.
5. Write a program to prepare the total marks for N students by reading the
Reg.No,Name, Mark1 to Mark6 by using array of structures.
6. Write a program using the function power (a,b) to calculate the value of a raised to b.
7. Write a program to find the length of the given string using pointers.
PART – B
9. Write a program in ‘C’ to create a singly linked list containing at least five
elements.Make necessary assumptions.
11. Write a “C” program to convert an infix expression into post fix expression.
13. Write a “C” program to add two 3 x 3 matrices and display the result in Matrix form.
14. Write a “C” program to read 10 elements and sort the above numbers using bubble
sort.
Ex. No : 01
Date : PRINT YOUR NAME AND ADDRESS
AIM:
To write a simple C Program to print your name and address.
PROGRAM:
#include <stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf("Name : Alexandra\n");
printf("Address : New Street, Chennai\n");
getch();
}
RESULT:
Thus to write a simple C program to print your name and address was executed
successfully.