how to implement stack work as a queue?

Answer Posted / kisna

by using two pointers

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the error 'Null Pointer Assignment' mean and what causes this error?

732


Is c high or low level?

570


What is structure pointer in c?

565


simple program of graphics and their output display

1462


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

1770






Why header file is used in c?

564


How can you convert integers to binary or hexadecimal?

606


Where local variables are stored in c?

548


Is linux written in c?

594


Is it possible to use curly brackets ({}) to enclose single line code in c program?

781


What does it mean when the linker says that _end is undefined?

621


Does free set pointer to null?

547


Write a program to check whether a number is prime or not using c?

567


What are extern variables in c?

539


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

759