Anna University Important Questions - Computer Programming C: UNIT IV: Structures and Unions
REVIEW QUESTIONS
1.
Give the difference between union and structure.
2.
Write a program to print name, place and account number using structure and
pointer.
3.
Briefly explain passing structure to functions with examples.
4.
Write a program to demonstrate pointers to unions.
5.
Write a program to pass union to a function.
6.
What is meant by preprocessor?
7.
Define macro substitutions.
8.
What is meant by program design and Coding?
9.
Define standard library functions for accessing files.
10.
Define an union which contains two members‒colour which is an array of 12
characters and size which is int. Define two union variables and assign values
to them.
11.
Write an input statement for inputting the marks and the names of 50 students
defined as student structure.
12.
Write a complete C program to compute and print the names of those students who
have got more than 80 marks. Also print their marks along with their names.
13.
Suppose a member of a structure is a pointer variable. How can the object of
the pointer be accessed in terms of structure variable name and the member
name?
14.
What happens when a pointer to structure is incremented?
15.
Write a program to read the coordinates of the end points of a line and to find
its length. Use a structure variable named 'line' to store the relevant information
about its end points.
16.
What is the difference between a structure declaration and a structure
initialization?
17.
Write a C program to declare a self referential structure using dynamic
allocation and to display the content of the structure.
18.
Define a structure for a student having name, roll number and marks obtained in
six subjects. Write a program to input the details for 20 students and print
the details of the students who have scored more than 70% marks overall.
Computer Programming C: UNIT IV: Structures and Unions : Tag: Computer Science : Computer Programming C - Structures and Unions in C Programming: Important Part B Questions
Computer Programming C
CS25C01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
English Essentials I
EN25C01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
தமிழர் மரபு - Heritage of Tamils
UC25H01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
Applied Calculus
MA25C01 Maths 1 M1 - 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
Applied Physics I
PH25C01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
Applied Chemistry I
CY25C01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
Makerspace
ME25C04 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
Computer Programming C
CS25C01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
Computer Programming Python
CS25C02 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
Fundamentals of Electrical and Electronics Engineering
EE25C03 1st Semester EEE Depart | 2025 Regulation | 1st Semester 2025 Regulation
Introduction to Mechanical Engineering
ME25C03 1st Semester Mechanical Dept | 2025 Regulation | 1st Semester 2025 Regulation
Introduction to Civil Engineering
CE25C01 1st Semester Civil, Agri Departments | 2025 Regulation | 1st Semester 2025 Regulation
Essentials of Computing
CS25C03 1st Semester - AIDS, CSE, CSE(CY), IT Department | 2025 Regulation | 1st Semester 2025 Regulation
Applied Physics I Laboratory
PH25C01 1st Semester practical Laboratory Manual | 2025 Regulation | 1st Semester Laboratory 2025 Regulation
Applied Chemistry I Laboratory
CY25C01 1st Semester practical Laboratory Manual | 2025 Regulation | 1st Semester Laboratory 2025 Regulation
Computer Programming C Laboratory
CS25C01 1st Semester EEE, ECE, CSE, CSE(CY), AIDS, IT practical Laboratory Manual | 2025 Regulation | 1st Semester Laboratory 2025 Regulation
Computer Programming Python Laboratory
CS25C02 1st Semester practical Laboratory Manual | 2025 Regulation | 1st Semester Laboratory 2025 Regulation
Engineering Drawing
ME25C01 EEE, Mech, Agri, EEE Depts | 2025 Regulation | 2nd Semester 2025 Regulation
Basic Electronics and Electrical Engineering
EE25C04 1st Semester ECE Dept | 2025 Regulation | 1st Semester 2025 Regulation
Essentials of Computing - Laboratory
CS25C03 1st Semester AIDS, CSE, CSE(CY), IT Depts | practical Laboratory Manual | 2025 Regulation | 1st Semester 2025 Regulation