When I compile this program, it shows 0 errors and when I run it, it shows Undefined symbol _main in module c0.ASM in c with structure
#include<stdlib.h>
#include<stdio.h>
struct node
{
int data;
struct node *next;
};
struct node * createNode(int num)
{
struct node *newNode;
newNode=(struct node *)malloc(sizeof(struct node));
newNode->data=num;
newNode->next=NULL;
return newNode;
}