WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / arshad
1.
calloc function takes two argument while malloc takes only 1
2.
by default memory allocated by malloc contains garbage values
whereas that allocated by calloc contains all zero.
Is This Answer Correct ? | 49 Yes | 15 No |
Post New Answer View All Answers
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
How can you restore a redirected standard stream?
Can we increase size of array in c?
Explain how can a program be made to print the name of a source file where an error occurs?
Why is extern used in c?
What is character constants?
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
How many types of functions are there in c?
Differentiate between null and void pointers.
What does it mean when the linker says that _end is undefined?
Compare and contrast compilers from interpreters.
What is masking?
What is file in c preprocessor?
largest Of three Number using without if condition?
Explain About fork()?