Consider the following code:
struct MyStructure
{
char MyString[40];
int MyInteger;
};
MyStructure StructVariable[20];
MyStructure *StructPointer;
StructPointer = StructVariable;
i. Does this code have any error(s)? If there correct it.
ii. Store some values (in member variables MyString and MyInteger) in 15th element of the array StructVariable using StructPointer.
struct MyStructure
{
char MyString[40];
int MyInteger;
};
MyStructure StructVariable[20];
MyStructure *StructPointer;
StructPointer = StructVariable;
i. Does this code have any error(s)? If there correct it.
ii. Store some values (in member variables MyString and MyInteger) in 15th element of the array StructVariable using StructPointer.
Comment