C Programming and Technical

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

Read Solution (Total 0)

C Other Question

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.
output?
Q. Where are the auto variables stored?

A. Auto variables are stored in main memory and their default value is a garbage value.