Thanks for the knowledge
so i tried to use it and wrote this code for a dynamic size stack kind of thing...
#include<stdio.h>
int *a;
int top=0;
Type: Posts; User: mrbains
Thanks for the knowledge
so i tried to use it and wrote this code for a dynamic size stack kind of thing...
#include<stdio.h>
int *a;
int top=0;
Hello everyone,
i am studying dynamic memory allocation in c,which can be done by using malloc calloc and realloc.
But still i don't understand the concept.
for eg
int *p;
p=(int*)malloc(100);...