Difference between null pointer and dangling pointer?
Answer Posted / vadivel t
To Sourisengupta Question.
free() shall free the memory which is allocated dynamically.
But afrer the free() function being called,the pointer
which u r passing to free() as an argument, shall point to
the same base address, which is no more valid.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can a variable be both const and volatile?
What is hashing in c language?
What math functions are available for integers? For floating point?
Can you assign a different address to an array tag?
How does sizeof know array size?
What are the 5 organizational structures?
How can variables be characterized?
Is exit(status) truly equivalent to returning the same status from main?
Difference between Shallow copy and Deep copy?
The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
Why do we use c for the speed of light?
Can we declare function inside main?
Is linux written in c?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?