Please help me how you will make a program that

using structure with a structure ??


example please

struct data
{
char name;
int age;
}

how will you make your structure be in within structure ???

and please kindly explain
what this mean

ppre->link=ploc->link ? ? ? ?

Recommended Answers

All 3 Replies

1>structure is a user defined data type, so once the user defines it he can use it just like any other data type, like in your struct you have 2 variables of type char and int, similarly you can add another variable of some struct data type. suppose there was another structure called employee, then you could say

struct employee
{
int empId;
...........
}

then

struct data
{
employee e; //structure within structure
int age;
...
}

2> i can tell u, but it's pointless...

> how will you make your structure be in within structure ???
at the namespace level

struct outer
{
  // ...
  struct inner
  {
    // ...
  };
  // ....
};

at the object level

struct composite
{
  // ...
  outer member_one ;
  outer::inner member_two ;
  // ...
};

Please help me how you will make a program that

using structure with a structure ??


example please

struct data
{
char name;
int age;
}

how will you make your structure be in within structure ???

and please kindly explain
what this mean

ppre->link=ploc->link ? ? ? ?

we also have the same problem...
why does this "ppre->link=ploc->link" looks familiar...
this was also given to us by ms.jmsntos as an exmple...

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.