Code Should i use &g on calling or *s in stack declaration?:
#include<iostream>
#include<stack>
using namespace std;
struct node{
    int data;
    struct node *link;
};
main(){
    stack<node> s;
    struct node *g;
    g = new node;
    s.push(g);
}
 
     
     
    