Difference between null pointer and dangling pointer?
Answer Posted / vrushali
NULL pointer points to nothing.
But dangling pointers are those pointers which points to
invalid location (e.g. still points to those memory
locations which are already freed)
int *p = NULL;
Is mere a pointer which is not initialised to valid
memroy location. it points to nothing
int *q ;
q -> 0x1A
free (q);
still we can access this pointer using q. Still memory has
not been released to the system.
| Is This Answer Correct ? | 27 Yes | 5 No |
Post New Answer View All Answers
What are formal parameters?
what type of questions arrive in interview over c programming?
What are variables and it what way is it different from constants?
What is define c?
Which header file is essential for using strcmp function?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
What are pointers? Why are they used?
What is the code for 3 questions and answer check in VisualBasic.Net?
What is the explanation for prototype function in c?
What is restrict keyword in c?
how to write optimum code to divide a 50 digit number with a 25 digit number??
What tq means in chat?
Can include files be nested? How many levels deep can include files be nested?
What is clrscr ()?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?