Question: What is wrong with these statements: int * ptr; * ptr = 5 ; A pointer can not point to a type of integer *
What is wrong with these statements: int ptr; ptr ;
A pointer can not point to a type of integer
ptr ; is not the right way to reference a pointer to update the value it is pointing to
A pointer must be initialized to a valid address before referencing it
There is nothing wrong with these statements, they will execute fine with no issues
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
