Answer Posted / alka
free()is a macro used to deallocate memory.
when we need more memory realoc() reallocate memory
according to given size, if there is no memory 4
alocation ,it will free previous allocated memory &
allocate new one using malloc().
ex: int *p = realloc(p,sizeof(p)*2);
| Is This Answer Correct ? | 15 Yes | 6 No |
Post New Answer View All Answers
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What does and I oop mean in text?
Why it is called runtime polymorphism?
What is the difference between abstraction and polymorphism?
What is static in oop?
Why oops is important?
What is pure oop?
Can you inherit a private class?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
What is and I oop mean?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What is overriding in oop?
What is the problem with multiple inheritance?
What are functions in oop?