Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
substring
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Robert Stankowic, post: 1685906"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Just curious - if I don't misunderstand 6.5.9 verse 6 (in N869) the above statement is correct, and if the expression "s2 == s1 + sizeof s1" yields true, s1 and s2 form a continguous sequence of 7 char objects which contains a '\0' in the last position. Isn't in this case the resulting object the same (except of scope) as if we wrote char *s1 = malloc(7); if(s1) { strcpy(s1, "123456"); } Here we also did not explicitely define an array, but we definitely created a string. Do you know any possibility for an implementation to produce different results (provided the expression "s2 == s1 + sizeof s1" yields true)? Robert [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
substring
Top