What are dangling pointers? How are dangling pointers different from memory leaks?
So dangling pointer is nothing but a pointer which is pointing a dynamic variable whose scope is already finished. Memory leak: When there is a memory area in a heap but no variable in the stack pointing to that memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
What do the functions atoi(), itoa() and gcvt() do?
#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } what will happen if you executed this code?
main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); }
Here is a neat trick for checking whether two strings are equal
What do you mean by invalid pointer arithmetic?
Is c procedural or functional?
What is return in c programming?
how the size of an integer is decided? - is it based on processor or compiler or OS?
19 Answers HCL, JPR, Microsoft, nvidia,
Write a C program to convert an integer into a binary string?
Why we use int main and void main?
What is function prototype in c with example?
how to get starting address of a running C program