Author: Stan Eisenstat
Subject: Re: [Cs223] Nuances: Arrays v Pointers
Date: Sunday, 01 Mar 2020, 21:31:40
> Message Posted By: Unknown ... > Just making sure I understand this correctly. So when you write > > char *s = "foo" > > 8 bytes is allocated in the stack for ptr s which points to the 0th > element of "foo", which is stored in the text segment. Is that correct? Correct. --Stan-PREV INDEX NEXT