(a) Write down the difference between structure and union. Write a 'C…
Previous year question for Computer Programming.
Question
(a) Write down the difference between structure and union. Write a 'C' program to read following details of 50 students. Student Name, Student Roll No, Class Display total number of students studying in class "BE".
(b) Define calling a function. What is 'call by value' parameter passing in C program? How is it differing from 'call by reference'? Write a program segment to show these two types of parameter passing.
- Year: 2018
- Subject: Computer Programming
Related pages
More PYQs on Structures
- (b) Write a c-program using structures to read, write, compute average - marks and display the students scoring above and below the average marks for a class o…
- 7. (a) Explain array of structures and structure within a structure with examples.
- (a) Represent a complex number using a structure in C. Write a C program that uses functions to perform the following operations: (i) Addition of two complex n…
- (a) How to create a structure in C Programming. And how to access the variable in structure. Illustrate with the help of example. (10) (b) Describe the various…
- (a) Differentiate between local and global variables. Explain scope and lifetime of both types of variables. (08) (b) What is structure? Why structure is neede…