Thank you for your help. I understand that printing *a returns both neg and abs. However, for printing a, I thought it suppose to print out its address instead of the value 1000 because big.NewInt creates a pointer to the structure Int
Hi, Shawn, you’re seeing the big integer’s value instead of the pointer because *big.Int has a String method on it and according to the default formatting rules in the Printing section of the fmt package’s Overview, having that member function causes the default formatting to change to call that function.