WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / kaushik
malloc takes only one argument but calloc takes two orguments
malloc takes garbage value initial but calloc takes zero initial value,
calloc()and malloc() also returns NULL if there is not sufficient memory available in the heap
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is advantage of pointer in c?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
Explain how do you generate random numbers in c?
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
When do we get logical errors?
What is signed and unsigned?
What is the difference between local variable and global variable in c?
ATM machine and railway reservation class/object diagram
What is time complexity c?
Tell us something about keyword 'auto'.
What is the use of ?: Operator?
How can I implement a delay, or time a users response, with sub-second resolution?
What is difference between structure and union?
Explain what is the purpose of "extern" keyword in a function declaration?
Where local variables are stored in c?