Can anyone please explain here what is the issue in the below code because of that it is not producing any errors as well as any output?
#include <stdio.h>
#include <stdlib.h>
typedef struct Stack{
int size;
int top;
int data;
int *arr;
} Stack;
void push( Stack*s , int data)
{
s->top++;
s->arr[s->top] = data;
}
int main()
{
struct Stack *s;
s->size = 100;
s->top = -1;
s->arr = (int* ) malloc (s->size* sizeof(int));
push( s, 180);
}