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.

Recommended Answers

All 3 Replies

What is this code? How is it relevant to HTML or CSS?

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.

You can't just expect somebody to do your homework for you...

There are some syntax errors , compile u will find it out.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.