Sujet : Re: Two questions on arrays with size defined by variables
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.cDate : 10. Feb 2025, 18:57:22
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vodem4$1akhl$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 10.02.2025 11:39, David Brown wrote:
[...]
Let's assume your full code is :
int main() {
int n = 5;
char * arr[n];
arr[99] = "foobar";
}
This assumption is incorrect (for my case), so all derived possible
implications like
In C, that means exactly the same as a do-nothing program:
int main() { }
[...]
are meaningless.
Janis