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
Is there a way to compare two structure variables?
What does the error message "DGROUP exceeds 64K" mean?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
What is the importance of c in your views?
Tell us two differences between new () and malloc ()?
Why is c called a mid-level programming language?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
Explain how do you view the path?
Why does notstrcat(string, "!");Work?
What is the use of a semicolon (;) at the end of every program statement?
Why shouldn’t I start variable names with underscores?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What is wrong with this code?
C program to find all possible outcomes of a dice?
How will you divide two numbers in a MACRO?