Which is correct syntax for declaring pointer to object?

Which is correct syntax for declaring pointer to object? Correct Answer className* objectName;

The syntax must contain * symbol after the className as the type of object. This declares an object pointer. This can store address of any object of the specified class.

Related Questions

The correct statement for a function that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to a integer is ____________
The correct statement for a function that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to a integer is
Given pointer to a node X in a singly linked list. Only one pointer is given, pointer to head node is not given, can we delete the node X from given linked list?
If a pointer to an object is created and the object gets deleted without using the pointer then __________