 Hello friends, I am Sanjay Gupta. In this video I am going to demonstrate you how you can use area of structure in C programming. Before starting you can note how you can search my YouTube channel. You can type my name Sanjay Gupta in YouTube search bar. My channel will be available there. You can watch various programming related videos there. Now I am going to demonstrate you how you can use area of structure in C programming. So first I have included a header file that is a cdi.h. Now I have to declare a structure. So for example I am using complex structure. In complex number there are two members real and imaginary. So I have declared two variables int r and int i. Then I have terminated structure declaration. Now I am going to define main function. Inside main function if I write this struct complex c it means I have declared a variable of data type struct complex. So this c can store only one complex number that is one real and one imaginary value. But I want to store five complex numbers. So now I have converted c into area of structure. So this notation is area of structure. So this c variable can store five real and five imaginary numbers for five different complex numbers. Now I am going to implement a loop which will repeat five times. Inside this loop first I am going to display a message enter percent d complex number and then i plus one. So value of i is initially zero but I want to print the message enter first complex number. That's why I have used i plus one. So i is zero. So zero plus one one will be displayed. The next time I will be one. So one plus one two will be displayed and to receive values from user I have to write scan of statement which will store elements like this. So now I am going to convert this i into img imaginary. I have done because I am also using i variable. So to remove confusion I am using img for imaginary and i for index. So this way real and imaginary values of different complex numbers will be stored at i index of c array into R and img variables. Now after reading I can display all these values which are provided by a user on output screen. So I am first going to print up general message. All complex numbers are then I am applying a follow inside this follow. I am going to display real and imaginary values which are available in c array. So this way complex number equals to percent d then percent d i c of i c of i. So this way real and imaginary values of this c array for different indexes will be displayed on output screen. So this percent d first percent d will be displaying real value. Second percent d will be displaying imaginary value and then iota. So this way all the complex numbers will be displayed on output screen. At last I am writing return zero. So this is the simple example of using array of structure in c programming. Now I am going to execute this code. So you can see it is asking for first complex number. So I am entering five five five as real five as complex. Now second complex number six six third seven seven fourth eight eight fifth nine nine. You can see the output. All complex numbers are complex number. First is five five i then six six i then seven seven i then eight eight i and nine nine i. So first column is printing real second column is printing imaginary and then iota. So this way I have printed the output. If you want to modify the printing format then you can change these percent d percent d and i location. So this way you can print all the outputs on output screen with the help of this print f. And I have used array of structure to store five different complex numbers together. So this is the use of array of structure in c programming. I hope you have understood how I have implemented this program. If you want to watch more programming related videos you can search Sanjay Gupta in YouTube and you can watch various programming related videos in my channel. Thank you for watching this video.