What is Dynamic memory allocation in C? Name the dynamic allocation functions.
Answer Posted / hrpynux@gmail.com
To allocate memory dynamically, library functions are malloc() , calloc() , realloc() and free() are used. ... These functions are defined in the <stdlib. h> header file.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
C language questions for civil engineering
Write a program to check armstrong number in c?
What is masking?
What is the function of multilevel pointer in c?
What is the difference between the local variable and global variable in c?
What are the preprocessor categories?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
Can you apply link and association interchangeably?
Explain how do you search data in a data file using random access method?
Is boolean a datatype in c?
What is meant by realloc()?
What is a constant?
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]
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
Can we assign integer value to char in c?