What is true about the variable named ptr?

Advertisement

void *ptr;

  • It is a pointer initialized at NULL.
  • It is a pointer to a void function.
  • That declaration causes a compiler error, as pointers must specify a type.
  • It is a pointer to a value with no specific type, so it may be cast to point to any type.
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.