Learn the new technologies and Programming Languages here. Here the tutorials, hidden facts of Different technologies of programming languages like Python, Internet of Things(IoT), Arduino, Android, C language, Java and Placement questions.
Showing posts with label dynamic. Show all posts
Showing posts with label dynamic. Show all posts
Sunday, August 21, 2016
Tips for Technical Interview in IT industry
Labels:
array,
B.Tech,
BCA,
company,
Development,
dynamic,
Interview,
M.Tech,
MCA,
placement,
suggestion,
technical,
tips
Location:
Delhi, India
Saturday, August 20, 2016
Malloc and Calloc
Difference between Malloc() and Calloc()
1. malloc() takes one argument while calloc() takes two argument
2. malloc() does not initialize the allocated memory while calloc allocated memory intialized with 0.
3. Both are used for dynamic memory allocation.
4. malloc is faster than calloc
5.Example: int *p=(int *)malloc(sizeof(int));
int *p=(int *)calloc(10,sizeof(int));
1. malloc() takes one argument while calloc() takes two argument
2. malloc() does not initialize the allocated memory while calloc allocated memory intialized with 0.
3. Both are used for dynamic memory allocation.
4. malloc is faster than calloc
5.Example: int *p=(int *)malloc(sizeof(int));
int *p=(int *)calloc(10,sizeof(int));
Labels:
allocation,
App,
B.Tech,
BCA,
C language,
calloc,
calloc(),
dynamic,
facts,
M.Tech,
malloc,
malloc(),
MCA,
memory,
placement,
static,
suggestion
Location:
Delhi, India
Subscribe to:
Posts (Atom)