C Programming & Data Structures:Need help fixing code.
My program is to implement a stack using two instances of queuedata structures. It compiles just fine, but when I try running it,it says “Segmentation fault 11”. I think the issue is with the initfunctions. but I can’t figure out how to change them to get it towork.
Code must be able to compile using the command: “gcc -g -Wall-std=c99 -o stack_from_queue stack_from_queue.c”. Code also muststay in a single file!
Here is the code I have:
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#ifndef __TYPE
#define __TYPE
#define TYPE int
#endif
/******* structures *********/
/* link structure definition to implement singly linked lists forQueues*/
struct link
PayPal Gateway not configured
PayPal Gateway not configured