Computer Science, asked by CARELESSGIRL, 1 year ago

What are the ways to a null pointer can use in C programming language?

Answers

Answered by EHSASS
2

ıllıllı ʜᴇʀᴇ ɪs ʏᴏᴜʀ ᴀɴsᴡᴇʀ ıllıllı

Null pointers are possible to use in three ways.

⭐️ As an error value.

⭐️ As a sentinel value.

⭐️ To terminate indirection in the recursive data structure.

ᴇʜsᴀss ✿◕ ‿ ◕✿


CARELESSGIRL: Thanks you
Answered by hritikVK18
1

Answer:

Explanation:

The NULL constant is defined in many of the header files in the C programming language; including, stdio.h stddef.h , stdlib.h , etc. In C programming, usually, we add stdio.h in the program to use scanf() and printf() functions. So, you don't need to add any extra header files.

Similar questions