PREV INDEX NEXT

Author: Unknown
Subject: Deque vs deque
Date: Friday, 27 Mar 2020, 16:52:34

I am a bit lost trying to understand the difference between Deque and deque. As far as understand it, deque consists of two pointers to two headless single-linked lists (or another similar implementation). But then why do we use Deque (which is a pointer to deque) as an argument for functions in Deque.c? For example, why is the function declared as "bool createD (Deque *d)" not "bool createD (deque *d)"? Why do we use a pointer to a pointer to deque instead of just a pointer to deque?

Thank you!
PREV INDEX NEXT