How to determine palindrome using stack and queue?

I hv do my works, but i have a problem between it. CAn somebody help me to solve it...

#include <stdio.h>
#include <string.h>
#define SIZE 100

typedef char item_t;

typedef struct {
      item_t Items[SIZE];
      int top;

typedef struct{
      int count,front, rear;
      item_t Item[SIZE];

void InitialiseStack (Stack_t *S)
{      S->top=0;      }

int emptystack (Stack_t S)
{      return (;      }

int fullstack (Stack_t S)
{      return (;      }

void push (char x,Stack_t *S)
            printf("stack overflow\n");

void pop (Stack_t *S, char *x)
            printf("stack empty\n");

void InitialiseQueue (Queue_t *Q)

int emptyq (Queue_t Q)
{      return (Q.count==0);      }

int fullq (Queue_t Q)
{      return (Q.count==SIZE);      }

void insert(item_t y, Queue_t *Q)
      if (fullq(*Q))
            printf("queue overflow\n");

void Remove (Queue_t *Q, item_t *y)
            printf("queue empty\n");

main ()
      Stack_t S;
      Queue_t Q;
      item_t input[SIZE],Q_output[SIZE]="",S_output[SIZE]="";
      int i,length;


      printf("Enter a words to reverse> ");


                  printf("\nThe words are not palindrome\n");
                  return 0;

            else if(Q_output[i]==S_output[i])

      return 0;
Who is Participating?
Jase-CoderConnect With a Mentor Commented:
well when you pop stuff off the stack you are getting the data in reverse order so once you have popped the data off check to see if it still spells the same word. If it does then it is a palindrome
can you show me what you changed to get this working?
All Courses

From novice to tech pro — start learning today.