Write a code in C language
ON TO Questions First year students of an institute are informed to report anytime between 25.4.22 and 29.4.22. Create a C program to allocate block and room number. Consider Five blocks with 1000 rooms/block. Room allocation starts from Block A on first-come, first-served basis. Once it is full, then subsequent blocks will be allocated. Define a structure with appropriate attributes and create functions i. to read student's detail, ii. allocate block and room, iii. print function to display student's regno, block name and room number. In main method, create at least two structure variables and use those defined functions. Provide sample input and expected output. i. Describe various types of constructors and it's use with suitable code snippet [5 marks). ii. Explain about friend function and friend class with appropriate sample program of your choice 5 marks]. 10 3 n. 11
ON TO Questions First year students of an institute are informed to report anytime between 25.4.22 and 29.4.22. Create a
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
ON TO Questions First year students of an institute are informed to report anytime between 25.4.22 and 29.4.22. Create a
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!