[Solved] What is the difference between “*x = 1” and “x = 1” in C?


*x = 1; 

means that x contains a memory address, assign 1 to that memory address.

x = 1;

means assign 1 to the variable x.

solved What is the difference between “*x = 1” and “x = 1” in C?