Question: struct color in c programming g) Write a declaration for a const variable named MAGENTA of type struct color and initialize its members as 255,0,
struct color in c programming

g) Write a declaration for a const variable named MAGENTA of type struct color and initialize its members as 255,0, and 255, respectively. h) Write statements to declare an array of colors using pointer and allocate memory space to it using malloc. The size of the array is 5. i) Continue the question above and write statements to initialize the colors in the array Each member in the color should be initialized as 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
