C Programming and Technical

output?
Q. What is dangling pointer in c?

A. If any pointer is pointing the memory address of any variable but after some variable has deleted from that memory location while pointer is still pointing such memory location. Such pointer is known as dangling pointer and this problem is known as dangling pointer problem.

Read Solution (Total 0)

C Other Question

output?
main( )
{i
nt a[ ] = {10,20,30,40,50},j,*p;
for(j=0; j
output?
Q. What are merits and demerits of array in c?

A. Merits:
(a) We can easily access each element of array.
(b) Not necessity to declare too many variables.
(c) Array elements are stored in continuous memory location