How can you dynamically allocate memory in C?

Answer Posted / hr@tgksolutions.com

Memory can be dynamically allocated using functions like malloc(), calloc(), realloc(), and freed using free().

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

p*=(++q)++*--p when p=q=1 while(q<=6)

1476


I need previous papers of CSC.......plz help out by posting them.......

2066


How do you write a program which produces its own source code as output?

832


Explain zero based addressing.

777


What is wrong with this program statement?

779


What is the use of gets and puts?

771


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

2801


What is ## preprocessor operator in c?

811


int i=10; printf("%d %d %d", i, i=20, i);

1290


What is a pointer in c?

970


What are qualifiers?

797


I came across some code that puts a (void) cast before each call to printf. Why?

955


Tell me what is null pointer in c?

781


What is a pragma?

879


What is a lvalue

862