What is null pointer and what is its use?



What is null pointer and what is its use?..

Answer / Gyanu Kumar

A "null pointer" in C and C++ is a special value representing the absence of an object, a variable that has not been assigned any address. Its purpose is to indicate that a pointer does not point to any valid memory location. It's useful for checking if a function or operation failed due to a null input.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Embedded Systems AllOther Interview Questions

How does combination of functions reduce memory requirements in embedded systems?

1 Answers  


What kinds of problems can you hit with locking model?

1 Answers  


Explain me how does the interrupt architecture works?

1 Answers  


Hi Guru here.......my question is....... Is it necessary to start the execution of a program from the main() in C?

4 Answers  


Discuss the concept of yagni.

1 Answers  


Explain the significance of watchdog timer in embedded systems?

1 Answers  


Name three primary attributes of object-oriented design. Describe what they mean and why they're important.

1 Answers  


wat are the different rtos available? wat is the difference beetween RTOS ans OS

8 Answers   LG Soft,


What is the repository pattern?

1 Answers  


What's the difference between unit test and integration test?

1 Answers  


What is the volatile keyword used for?

1 Answers  


Significance of watchdog timer in embedded systems.

1 Answers  


Categories