i need to create a linked lists in size =N
each struct pointing to the next sruct the user will enter and the first struct pointed by constant pointer head.
TNX .............
each struct pointing to the next sruct the user will enter and the first struct pointed by constant pointer head.
TNX .............
Code:
#include <stdio.h>
#define size=5
void main()
{
typedef struct
{
int x,y;
struct Strct *next;
}Coordinate;
for(i=0; i<size; i++)
{
Coordinate (?????);
printf("Enter name & value: <name,value>\n");
scanf("%d,%d",(????));
}
}
Comment