On c language pointer assignment statement and

Users questions: I am a beginner, what about int * p_cost; p_cost = &cost; the above statement and the following are equivalent, or a difference, the difference between what? int * p_cost = &cost;
Experts answer:LZ of these two formulation are equivalent! However, there are still Difference, difference is: the above was written in the general statement of integer pointer variable, and then to a pointer variable assignment. The following statement was written at the same time integer pointer variable assignment, called the variable initialization.
  • This information provided by the users.Thanks!