(a) Differentiate between local and global variables. Explain scope a…
Previous year question for Computer Programming.
Question
(a) Differentiate between local and global variables. Explain scope and lifetime of both types of variables. (08)
(b) What is structure? Why structure is needed? Differentiate between structure and array. Also Create structure "Employee" with Eno, name, salary, DOJ. Read at least 10 records & display records of employees whose salary is more than 50000. (12)
- 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) 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 D…