• NULL peculiarities
    I have a question about the behavior of some code I have written: Packet Packet_str; when I declare this structure in my main program and then check its memory location via a printf statement and...
  • Null Pointers
    What happens if i try to write data to memory location where NULL POINTER is pointing, in ARM? _my understanding_ The Null Pointer is a Pointer pointing to 0. Does that mean memory location 0x0(the...
  • Pointer to NULL structure
    I have a structure defined as typedef struct example{ int a; char b; example c; }STRUCT_EG; and I declare a pointer to this structure as STRUCT_EG *Struct_ptr To check whether the pointer...
  • Probelm checking for NULL
    I am trying to check for a NULL character but I get the following error when I try to comiple: Error C193: '!=': bad operand type Any suggestion on how to correct the problem? Thanks.
  • Null terminating character
    Hi all, I've this strange problem with the \0 character. I'll show you the code first: #include <REG52.H> void test(char *s) { int idx; for(idx = 0; *s != '\0'; idx++, s++) { } P1 =...