What do you mean by it shall have a matrix? Shall the code include a multidimensional array of structures, or shall the structure include a multidimensional array?
Code:
typedef struct
{
int integer;
char character;
char *string;
float array[3][3];
} myStructure;
// ...
myStructure ms;
myStructure msa[2];
// Using ms
ms.integer = 1234;
ms.character = 'A';
ms.string = "ABC";
// You could use a loop for the following...
ms.array[0][0] = 1.0;
ms.array[0][1] = 1.0;
// ...
ms.array[2][2] = 1.0;
// Using msa
msa[0].integer = 1234;
msa[1].integer = 1234;
msa[0].character = 'A';
msa[1].character = 'A';
msa[0].string = "ABC";
msa[1].string = "ABC";
// You could use a loop for the following...
msa[0].array[0][0] = 1.0;
msa[0].array[0][0] = 1.0;
msa[1].array[0][1] = 1.0;
msa[1].array[0][1] = 1.0;
// ...
msa[0].array[2][2] = 1.0;
msa[1].array[2][2] = 1.0;
If you want to print the members, you simply use the same form as for assignment. You print
structure_name.
member_name