Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Memory leak
#include<stdio.h> #include<stdlib.h> int main() { int *p= NULL;int *q; p= (int*)malloc(sizeof(int)); //Allocate memor free(p); //free the allocated memory q=(int*)malloc(sizeof(int)); *q=400000; *p= 200000; //p is dangling pointer printf("%d",*p); return 0; }
run
|
edit
|
history
|
help
0
FUNCION strstr()
First program.c
22nd HW Switchv0.3
MATRICES TRIANGULARES
NETFLIX TERMINADO
cstructCricPoint
Project 3 Part 1 v0.5
A_141117_Primo02
Simple Fork
Add sum.c