Post not yet marked as solved
Post marked as unsolved with 1 replies, 498 views
Hello.
I'm just studying C programming, and I have a trouble with impossibility to implement logic operation to pointer with NULL value.
For example:
int * ptr;
ptr = NULL:
if (ptr) {
printf("Ptr isn't NULL\n");
} else {
printf("Ptr is NULL\n");
}
I get exception = EXC_BAD_ACCESS (code=1, address=0x10).
The real case in lldb debugger in picture.
Please, help me. This issue really breaks programming principles which I must learn.