WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / prakashdasari
malloc () for allocating the single block of memory
calloc () for allocating multiple blocks of memory
the values assigned are garbage in case of malloc() and
proper values (zeros) are assigned in case of calloc().
| Is This Answer Correct ? | 114 Yes | 34 No |
Post New Answer View All Answers
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
What does %d do?
What are types of preprocessor in c?
Why is #define used?
How does normalization of huge pointer works?
Where we use clrscr in c?
Why & is used in c?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What is array of pointers to string?
In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]
In a switch statement, what will happen if a break statement is omitted?
What are the different types of constants?
How can I make sure that my program is the only one accessing a file?
Should I learn data structures in c or python?
Why is c called a mid-level programming language?