Author: Stan Eisenstat
Subject: Re: [Cs223] Double pointers to deque
Date: Sunday, 29 Mar 2020, 15:13:00
> Message Posted By: Unknown > > Why do the Deque.c functions use pointers to Deques (aka pointers to > pointers to deques), rather than just Deques (aka pointers to deques)? To allow greater freedom in how the Deque ADT is implemented. See my earlier postings for details. ===== > In Deque.c, Is the best way to access the deque fields to use this format: > (*d)->H? Yes. The parentheses are necessary because *d->H is equivalent to *(d->H), which is not what you want. --Stan-PREV INDEX NEXT