What is realloc() and free()? What is difference between them?
The free subroutine frees a block of memory previously allocated by the malloc subroutine. The realloc () function is used to allocate memory and has the following prototype: void * realloc (void * ptr, unsigned int num);
| Is This Answer Correct ? | 0 Yes | 0 No |
Is there any problem with the following: char *a=NULL; char& p = *a;?
Differentiate between a template class and class template in c++?
What is #include iostream?
Which programming language should I learn first?
What are different types of typecasting supported by C++
Can we make copy constructor private in c++?
What is the outcome of cout< a) 16 b) 17 c) 16.5
What is prototype in c++ with example?
What is Virtual Inheritance?
Is c++ a software?
How much maximum can you allocate in a single call to malloc()?
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?