(a) Represent a complex number using a structure in C. Write a C prog…
Previous year question for Computer Programming.
Question
(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 numbers (ii) Subtraction of two complex numbers (10)
(b) Write a program to demonstrate passing an array argument to a function. Consider the problem of finding largest of N numbers defined in an array. (10)
- Year: 2022
- 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) 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…
- (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…