P
prakashraovaddina
Hi ppl,
can some one say if the following pointer initialization is legal or
no.
int *intPtr = 5;
While debugging i still see that the pointer is given some address.
However, the initialization value is not found there. But, the
following string initialization,
char *charPtr = "this is a test string";
is just fine. The charPtr is pointing to the address location of the
value, "this is a test string".
thank you,
Prakash
can some one say if the following pointer initialization is legal or
no.
int *intPtr = 5;
While debugging i still see that the pointer is given some address.
However, the initialization value is not found there. But, the
following string initialization,
char *charPtr = "this is a test string";
is just fine. The charPtr is pointing to the address location of the
value, "this is a test string".
thank you,
Prakash