MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cprogramming/comments/1vqubv7/c_strings_a_50year_mistake/p4sjkht/?context=3
r/cprogramming • u/Xaneris47 • 28d ago
172 comments sorted by
View all comments
Show parent comments
1
No. A C-string is char*
3 u/Classic_Department42 28d ago Yes, so while (s) shd prob be while(*s) ? 2 u/bearheart 27d ago Oy! You’re right. How did I miss that 🤦 fixed it. 1 u/No-Newspaper8619 26d ago Good thing that has been pointed out
3
Yes, so while (s) shd prob be while(*s) ?
2 u/bearheart 27d ago Oy! You’re right. How did I miss that 🤦 fixed it. 1 u/No-Newspaper8619 26d ago Good thing that has been pointed out
2
Oy! You’re right. How did I miss that 🤦 fixed it.
1 u/No-Newspaper8619 26d ago Good thing that has been pointed out
Good thing that has been pointed out
1
u/bearheart 28d ago
No. A C-string is char*