How can you dynamically allocate memory in C?

Answers were Sorted based on User's Feedback



How can you dynamically allocate memory in C?..

Answer / nashiinformaticssolutions

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

Is This Answer Correct ?    0 Yes 0 No

How can you dynamically allocate memory in C?..

Answer / 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

More C Interview Questions

How do you initialize pointer variables?

0 Answers  


What does the error 'Null Pointer Assignment' mean and what causes this error?

0 Answers   TISL,


What is strcmp in c?

0 Answers  


how can you print&scan anything using just one character? :) HINT: printf,scanf similer

2 Answers  


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a<b,printb.find the sum digits of that number & then print.if a==b multiply 10 with a & add 20 with b store in c and then print

0 Answers  


What do you mean by a local block?

0 Answers   InterGraph,


What is clrscr in c?

0 Answers  


Do pointers store the address of value or the actual value of a variable?

0 Answers   Fidelity,


Write a program that receives as input a number omaadel-n-print, four digits.

0 Answers  


difference between malloc and calloc

3 Answers   HCL, Wipro,


How can I sort more data than will fit in memory?

0 Answers  


Why do we use & in c?

0 Answers  


Categories