c programming final exam questions and answers
such pointers can lead to undefined behavior, crashes, or security vulnerabilities. Example of a dangling pointer: ```c int ptr = malloc(sizeof(int)); ptr = 10; free(ptr); // memory deallocated // ptr still point