(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)

Related pages

More PYQs on Structures

Open on CachedInfo