Posts

Post not yet marked as solved
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.
Posted
by It9620.
Last updated
.