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
What is a const pointer in c?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
What is nested structure with example?
What language is c written?
Can include files be nested?
How to declare a variable?
What is a ternary operator in c?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What is the use of in c?
What does %p mean?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
Explain about the functions strcat() and strcmp()?
List the different types of c tokens?
Do character constants represent numerical values?