Skip to content
CompuServe test bed
CompuServe Archive
CompuServe Forums
CompuServe Messages
CompuServe Thread
CompuServe User
CompuServe Thread
Search
Browse Forums
Thread
Forum unknown
·
Programming
What's c++
1
messages in this thread
#
131510
From:
Scott Ballantyne
Jun 23, 1988 11:16 PM
"This is a string" is an array, technically, which is automagically promoted to a pointer to char when the conditions are right. Try sizeof("this is a string") as opposed to sizeof(ptr). (Just trying to confuse further, that's all). sdb