Answer Posted / sourisengupta
free(ptr);
free takes the pointer variable as argument. The intial
data at that location holds a value of number of bytes that
pointer is pointing to. According to the information, it
frees
the memory.
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
Explain what is the heap?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
What are local variables c?
What are type modifiers in c?
How do you print only part of a string?
Explain how can I make sure that my program is the only one accessing a file?
What is the size of a union variable?
What was noalias and what ever happened to it?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What is the size of enum in c?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What is the difference between #include and #include 'file' ?
What does 1f stand for?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
Define C in your own Language.