veddotcom
Journeyman
#include <stdio.h>
#include <conio.h>
#include <alloc.h>
/* structure containing a data part and link part */
struct node
{
int data ;
struct node * link ;
} ;
/* This is The Part of Programm*/
The Problem is when i m running This Program (of Linked List) Runs Properly But When i m Changing Code to As Below It Gives Error..It Says LINK is not Defined.
#include <stdio.h>
#include <conio.h>
#include <alloc.h>
/* structure containing a data part and link part */
struct node
{
int data ;
} ;
struct node * link ;
why i m getting problem when i defined the line (struct node * link Outside the Structure....
Thank You
#include <conio.h>
#include <alloc.h>
/* structure containing a data part and link part */
struct node
{
int data ;
struct node * link ;
} ;
/* This is The Part of Programm*/
The Problem is when i m running This Program (of Linked List) Runs Properly But When i m Changing Code to As Below It Gives Error..It Says LINK is not Defined.
#include <stdio.h>
#include <conio.h>
#include <alloc.h>
/* structure containing a data part and link part */
struct node
{
int data ;
} ;
struct node * link ;
why i m getting problem when i defined the line (struct node * link Outside the Structure....
Thank You