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
linear_search.c
Lab6 v1.1 Sin,cos,tan,cot
funciones serie de taylor
Fgets and String Stuff
co_assign1_ques_4
Pozdravljeni v mali soli C.
2.2 Comparision with Matrix Addition Execution Time
Sizeof void
demo_strlen
20171116_TARTAGLIA