hai friend,
i have an idea that is
sprintf(buff,"%d",i); for int var
sprintf(buff,"%ld",l) for long var
or
itoa(); for int
ltoa() for long in "stdlib.h"
bye..
hai,
after allocate the space if you are test like this
array=(int *)malloc(size);
if(array == NULL)
{
printf("memory is not allocated...");
exit(1);
}
i think this type of checking is usefull.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.