0% found this document useful (0 votes)
5 views20 pages

Adv C

The document contains a list of programming tasks in C, including operations with pointers, structures, arrays, and linked lists. Tasks involve mathematical operations, string manipulation, file handling, and memory management. Each task is designed to enhance understanding of C programming concepts and data structures.

Uploaded by

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

Adv C

The document contains a list of programming tasks in C, including operations with pointers, structures, arrays, and linked lists. Tasks involve mathematical operations, string manipulation, file handling, and memory management. Each task is designed to enhance understanding of C programming concepts and data structures.

Uploaded by

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

1.

Write a C program to add 4 numbers in floating point using pointers (only


two numbers allowed after decimal point in result)

2. C program to capitalize the first and last letter of every word in a string.
Input:- beautiful world
Output:- After Converting string is: BeautifuL WorlD
3. Write a C program to find character is vowel or consonant using pointer.

4. Create a structure program to read (empno, dept and basic pay) and store
the data of 3 employees and calculate their Gross Salary (da=10% and
HRA=30% from BP) using nested structures.
5. Write a C program to find Consonants in a given string using for loop.
6. Display stack element using array.

7. Push an element into a stack using array.


8. Write a function to insert elements in a queue using array.

9. Write a function to traverse a linked list and display it in the following


format.
10. Write a function to insert a node in linked list.
11. Traverse a double linked list.

12. Write a function to insert an element in double linked list.


13. Display stack elements using linked list.

14. Write a function to delete elements in queue using Linked List.(use


double data in the queue)
15.Write a function to insert elements in queue using Linked List.( use double
data in queue) (or) Enqueue using linked list
16. Perform enqueue, dequeue, peek, display, in Queue using linked list
(float datatype) (or) Queue operations using linked list
17. Display queue elements using array.
18. C program to find sum of each column of a matrix
19. Write a C program to read an amount (integer value) and break the
amount into smallest possible number of bank notes.
(Note: The possible banknotes are 100, 50, 20, 10, 5, 2 and 1).
20. C program to check whether the last digit of given two numbers are equal
or not

21. Write a program in C to print a string in reverse using pointer


22. Create a structure for Electricity Bill calculation using function-Passing
structure to a function by address(reference)(use service no, name,
previous reading, current reading, unit consumption & amount as data
members). ( units<=100 per unit Rs.2.00 ,units>100 and unit<=300
Rs=3.00,above 300 units Rs.5.00)
23.Write a C program to accept details of 'n' employee(eno, ename, salary)
and display the details of employee having lowest salary. Use array of
structure.
24. Using structure concept, write a c program to find the minimum among
three distinct numbers. (hint: use nested if)

25. Construct a C program to store any 3 subject details such as code, marks&
staff then display the list of staffs whose marks belongs to greater than or
equal to 95 using structure.
26. Write a C program to read a file name from user and create that file using
fopen()(Ex. Hospital.java)

27. Write a C program to print the elements of an array in reverse order using
pointer
28. Write a C program to swap any three variables using function pointers
(without temporary variables)

29. Create a program to split a string by space into words using do-while loop
30. Write a dynamic memory allocation program in C to get and display
member of union using malloc() and free(). Note: Define a Union named
“Student_Profile” and its member is “id”

You might also like