// Create a structure to store complex numbers (use arrow operator)
#include <stdio.h>

struct complex {
    int real;
    int img;
};

int main(){
    struct complex number1={5,8};
    struct complex *ptr = &number1;
    printf("struct complex real part : %d\n",ptr->real);
    printf("struct complex imaginary part : %d",ptr->img);
    
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: