Why this error is being thrown for below code.
Error: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘=’ token
struct node_s *next=NULL;
Code:
#include<stdio.h>
#include<stdlib.h>
typedef struct node_s {
int data;
struct node_s *next=NULL;
} node;