Question discussion

A pointer in C that is not intended to point to any valid object is conventionally assigned the value

2312Medium DSSSB TGT Computer Science 0 replies 1 views
0

A pointer in C that is not intended to point to any valid object is conventionally assigned the value

  • A-1
  • BEOF
  • Cvoid
  • DNULL
Correct answer: D

Explanation

The macro NULL (a null pointer constant) marks a pointer that points to nothing, and dereferencing it is an error.

Discussion 0

Nobody has replied yet. Start the discussion!