0% found this document useful (0 votes)
2 views

C&DS Lab Manual

The document outlines the practical syllabus for the C Programming & Data Structures course at Government Polytechnic College, Gandarvakottai. It includes a series of programming tasks ranging from simple C programs to more complex data structures like linked lists and stacks. Each task is designed to enhance students' understanding of C programming and data structures through hands-on practice.

Uploaded by

nushrath
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

C&DS Lab Manual

The document outlines the practical syllabus for the C Programming & Data Structures course at Government Polytechnic College, Gandarvakottai. It includes a series of programming tasks ranging from simple C programs to more complex data structures like linked lists and stacks. Each task is designed to enhance students' understanding of C programming and data structures through hands-on practice.

Uploaded by

nushrath
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

DCSE- III SEM

137-GOVERNMENT POLYTECHNIC COLLEGE,


GANDARVAKKOTTAI

4052360- C Programming & Data Structures Practical

PREPARED BY,
A.NUSHRATH FATHIMA,
LECT/CSE

4052360-C Programming & Data Structures - N Scheme 1


DCSE- III SEM

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.

4. Write a program to print all prime numbers from 1 to N.

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.

8. Write a program to find factorial of a number using recursion.

PART – B

9. Write a program in ‘C’ to create a singly linked list containing at least five
elements.Make necessary assumptions.

10. Write a “C” program to perform operations in stack using array.

11. Write a “C” program to convert an infix expression into post fix expression.

12. Write a “C” program to perform operations in queue using array.

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.

15. Write a “C” Program for binary searching.

4052360-C Programming & Data Structures - N Scheme 2


DCSE- III SEM

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.

4052360-C Programming & Data Structures - N Scheme 3

You might also like