What is the difference between malloc() and calloc()?
Answer Posted / nashiinformaticssolutions
malloc(): Allocates a single block of memory without initializing it.
calloc(): Allocates multiple blocks of memory and initializes them to zero.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is register a keyword in c?
Explain built-in function?
Why is c called c not d or e?
What's a good way to check for "close enough" floating-point equality?
Explain how can I read and write comma-delimited text?
Can a pointer be volatile in c?
What is the difference between mpi and openmp?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What is wrong with this code?
Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.
Can we use any name in place of argv and argc as command line arguments?
How can you be sure that a program follows the ANSI C standard?
What is variable in c example?
what will be maximum number of comparisons when number of elements are given?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration