Functionally, there is no difference between int* ptr and int *ptr --- both declare a pointer to an integer. The asterisk (*) binds to the variable name, not the type, so it's all about personal or stylistic preference.
ampersand (&)
notation: a system of signs or symbols used to represent information, especially in mathematics, science and music
showcase: an event that presents somebody’s abilities or the good qualities of something in an attractive way
iterate: to repeat a mathematical or computing process or set of instructions again and again, each time applying it to the result of the previous stage
mutable: that can change; likely to change
Arrays are not mutable but the content of array are mutable.
Array mutability: Once an array is declared, its memory address is fixed. You cannot change the array to point to a different memory address.
Content mutability: The values stored in the array elements can be changed. For example, if you have an array of integers, you can modify the values of those integers.
arithmetic: the type of mathematics that deals with the adding, multiplying, etc. of numbers
沒有留言:
發佈留言