A pointer is an integer value bound to a variable like any other, which happens to be the address of something interesting in the current process memory space.
int bar[1];
What type is bar?
What type is bar[0]?
What type is *bar?
What type is &bar[0]?
char a; char *b;
What type is &a?
What type is b?
What are the implications of this?
Name:
Anonymous2007-07-24 5:52 ID:qw9qdqKL
What type is bar? int [1]
What type is bar[0]? int
What type is *bar? int
What type is &bar[0]? int*
What type is &a? char*
What type is b? char*
What are the implications of this? you are a daft cunt
>>22
for the compiler const char test[] = "abc";
and const char * const test = "abc";
is exactly the same, however the concept of an array is very differend than the concept of a pointer.
I can't believe you fags still confuse that shit.
faggots.
Name:
Anonymous2007-07-24 11:37 ID:s6CM+yN7
>>25
THIS IS WHY I HATE C/C++
const int& mutable const volatile long long void int function(const& int const var, const) const WTF
my questions exposed you ignorant retards for the frauds you are. those are simple questions that a C beginner needs to know before talking about pointers being "integers"(wtf) pointing to "memory"(wtf), and you, /prog/rammers, have failed.
try harder not to make yourselves look stupid next time.
>>32
you're a fucking failure.
char a[] = "test";
In the above case, a is NOT the same with &a.
if you don't understand that you need to re-read your C book.