what is ISO C++ forbids comparison between pointer and integer?
godlike111
-5
Newbie Poster
Recommended Answers
Jump to PostBecause they are two different things.
I suspect you are referring to an error you're getting?
Post the code (using [code] [/code] tags) and we might come up with a solution
Jump to PostBecause of no total linear memory space concept in platform-independent C++ language.
Moreover, no assumption that pointer binary representations are positive (or negative or even if they are valid) integer values. For example, visual pointer representation on some platforms looks like XXXX:YYYY - is it integer?You can use …
Jump to PostBecause of no total linear memory space concept in platform-independent C++ language.
That's not true. The memory model in C and C++ is linear. Or, at least, the memory available to a program consists of a series of one or more sequences of contiguous bytes.
However, a pointer is …
All 9 Replies
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
ArkM
1,090
Postaholic
grumpier
149
Posting Whiz in Training
ArkM
1,090
Postaholic
Narue
5,707
Bad Cop
Team Colleague
Salem
5,138
Posting Sage
grumpier
149
Posting Whiz in Training
ArkM
1,090
Postaholic
Narue
5,707
Bad Cop
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.