Author: Unknown
Subject: Nuances: Arrays v Pointers
Date: Sunday, 01 Mar 2020, 20:56:22
Hi, 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? Thanks in advance.PREV INDEX NEXT