Hi,
Following code snippet show the maximum number of nodes to be created. I execute this code and show the count : 7874
My problem is that I want to create more node than 7874. I have compiled this code by Turboc version 3.0 on Windows XP.
#include <stdio.h>
#include <stdlib.h>
struct List{
int no;
List *next;
};
List *first;
int Test(){
int i=0;
first=new List;
List *t=first;
while(1) {
if(t==NULL)
break;
t->no=i;
t->next=new List;
t=t->next;
i++;
}
return i;
}
int main() {
printf("\nTotal Nodes allocated : %d",Test());
}