-->

struct,typedef and union related program :

struct programs :
--------------------------------------------------------------------------------------------------------------------
1.)WAp to initialize data with struct.
                                                                                                                            solution

                                                                                                                             solution
2)WAP to input name,address and roll of a student and display that using struct.
                                                                                                                           solution

3)WAP to know total memory occupied by struct using size of struct concept.

                                                                                                                             solution

4)WAP to input name,address and roll number of some students using struct/ array of struct.

                                                                                                                            solution


5)WAP read 10 students data (roll, name,class and marks in 5 subjects) and display that using struct with percentage.

                                                                                                                                 solution

6)Write a program to input student's name, address and class. Now display that in sorted order on the basis of name.

                                                                                                                              solution

7)Program to understand concept of nested structure of struct.
                                                                                                                              solution

8)wap to find sum of two distances measured in feet and inch using function.
         (pass struct as parameter in function)

                                                                                                                              solution

9)program to add two times given in hrs,mm and ss using struct

                                                                                                                           solution

10)WAP to enter student id, student name and address for any 10 students. Then search a data and its location.

                                                                                                                             solution

union:-

1)Write a program to initialize union.
                                                                                                                        solution

2) Write a program show use of union.
                                                                                                                            solution

3)program to  show total bytes used by union ,using sizeof().

                                                                                                                          solution

enum data type:


1) program to know enum data type.
                                                                                                                      solution

                                                                              solution

2) program to understand enum using loop.

                                                                                                                    solution

typedef data type:


1) WAP to understand concept of typedef.

                                                                                                                     solution

2)WAP to understand typedef for struct.

                                                                                                                       solution

3)wap to find sum of two distances measured in feet and inch using function.

                                                                                                                      solution




No comments:

Post a Comment