i want to know,how to define node in c language??
If you are defining node in a linked list , then you can do it using structure.
struct node {
int data;
struct node *next;
}
If you want to store multiple information in a node then you can do it like this
struct node {
int num1;
int num2;
char ch1;
char ch2;
};
struct node
{
int data;
struct node *next;
};
typedef struct node Node;
OR in a single statement
typedef struct node
{
int data;
struct node *next;
}