cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
UNIX/Linux Programming
Compare (strcmp)
Compare (strcmp)
Nov 12, 2008 at 12:16pm UTC
CrossWind
(3)
Hello,
I have the following code:
1
2
3
4
const
char
* blaat =
"@@BCN"
;
const
char
* hoi = blaat; printf(
"%d"
, strcmp(blaat, hoi));
It returns 0!
How is this possable?
Kind regards,
CrossWind
Nov 12, 2008 at 1:41pm UTC
Bazzy
(6281)
Read
Return Value
section of this:
http://www.cplusplus.com/reference/clibrary/cstring/strncmp.html
Nov 12, 2008 at 5:20pm UTC
CrossWind
(3)
Ah, I'm so stupid,
Thanks :-)
Topic archived. No new replies allowed.