A ____ pointer can point to any data-type:a.NULL pointer b.void pointer c. dangling pointer d. such a pointer does not exist
Question
A ____ pointer can point to any data-type:a.NULL pointer b.void pointer c. dangling pointer d. such a pointer does not exist
Solution
The correct answer is b. void pointer. A void pointer in C is a pointer that has no associated data type. It can store the address of any type of object and it can be type-casted to any type.
Similar Questions
In which case does a pointer become a dangling pointer?
What is the result of dereferencing a dangling pointer?Marks : 1Negative Marks : 0Answer hereThe program crashes.The pointer is set to NULL.The value at the memory location it points to.A compilation error.
Which of the following statements about dangling pointers is true?
Which of the following scenarios can lead to a dangling pointer?Marks : 1Negative Marks : 0Answer hereReturning a pointer to a local variable from a functionUsing malloc() for memory allocationAssigning a pointer to another pointerDeclaring a pointer inside main()
what kind of pointer Constant Pointer Pointer to Pointer NULL Pointer Void Pointer
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.