What is the difference between "calloc" and "malloc"?
Answer Posted / gallanticscorp
calloc means alloting memory dynamically
malloc means alloting memory at first and it is fixed
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
Which software is best for coding?
What is the benefit of c++?
What are c++ data types?
Which is the best c++ compiler?
What are built-in functions? What is the syntax for the definition?
Out of fgets() and gets() which function is safe to use and why?
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
You run a shell on unix system. How would you tell which shell are you running?
How would you use qsort() function to sort an array of structures?
What is the purpose of extern storage specifier?
A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.
What is polymorphism and its type in c++?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
Is c++ platform dependent?
How can you quickly find the number of elements stored in a dynamic array?