0% found this document useful (0 votes)
13 views1 page

UPTO LAB 6 EXPERIMENT - DS Lab

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views1 page

UPTO LAB 6 EXPERIMENT - DS Lab

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Lab 1:

1. Write a program in C to create variables of primitive data types and display their size.
2. Write a program in C to display execution of Arithmetic Operator
3. Write a program in C to display execution of increment and decrement operator
4. Write a program in C to display execution of Assignment operator

Lab 2:

1. Write a program in C to display multiplication table of a number


2. Write a program in C to find sum of digits of a number
3. Write a program in C to display numbers from 1 to 10 in reverse order

Lab 3:

1. Write a program in C to create an array and display the elements.


2. Write a program in C to find largest element in an array.
3. Write a program in C to find smallest element in an array.
4. Write a program in C to sort elements in array.
5. Write a program in C to merge two array.
6. Write a program in C to search an element in array.
7. Write a program in C to delete an element from array.
8. Write a program in C to reverse an array.

Lab 4:

1. Write a program in C to read a string and display that.


2. Write a program in C to display a single character from a string.
3. Write a program in C to modify a character in string.
4. Write a program in C to find length of string.
5. Write a program in C to copy a string value into another.
6. Write a program in C to concatenate two strings.
7. Write a program in C to compare two strings.

Lab 5:

1. Write a menu-driven program in C to perform various operations on Stack.

Lab 6:

1. Write a menu-driven program in C to perform various operations on Queue.

You might also like