WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / divya sharma
malloc takes the single argument nd calloc takes two argument
malloc initialize byte of memory while calloc initialize the
block of memory
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain what is the difference between the expression '++a' and 'a++'?
Explain what is the advantage of a random access file?
How do you convert strings to numbers in C?
can we implement multi-threads in c.
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
What is the difference between printf and scanf )?
In which header file is the null macro defined?
What is the use of ?
Which function in C can be used to append a string to another string?
Differentiate between full, complete & perfect binary trees.
how to count no of words,characters,lines in a paragraph.
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
What is your stream meaning?
Can a file other than a .h file be included with #include?