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
++*p++
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Guest, post: 3809886"] if this program runs on an ascii machine then adding 1 to every character in "Hello" yeilds "Ifmmp". I'm not cetain if ++*p++ has defined behaviour. Modifying a string literal certainly doesn't. So the program could do anything. As it is p is left pointing to nul so printing it produces nothing the there's a space the there's "Hello" with all its characters incremented. What did you expect it to do? Why did you write it? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
++*p++
Top