#include <iostream> using namespace std; struct rectangle { int length; int breadth; }; int main() { rectangle *p; // in C, struct rectangle *p; p = new rectangle; //in C, p = (struct rectangle *)malloc(sizeof(struct rectangle)); p->length = 15; p->breadth= 7; cout << "length : "<<p->length<<endl; cout << "breadth : "<<p->breadth<<endl; return 0; }