in C: *(array)equivalent array[0]?
*(array)
array[0]
Hence is *(array+2)equivalent to array[2]?
*(array+2)
array[2]
Yes, for example:
Given:
int a[10];
Then
*(a + 2)
equivalently
a[2]
and only for good measure.
2[a]
You can look at this for more help: http://www.ibiblio.org/pub/languages/fortran/append-c.html
4) Taking an index with the value i, the equivalent to the operation: "pointer-add i, and then type-dereference the amount", i.e. xxx[i] = *(xxx # i)
4) Taking an index with the value i, the equivalent to the operation: "pointer-add i, and then type-dereference the amount", i.e.
xxx[i] = *(xxx # i)
As already mentioned, the answer is yes, but you can better understand.
: .
. ( 15- .)
Source: https://habr.com/ru/post/1721242/More articles:Automatically handle missing database connection in ActiveRecord? - ruby-on-railsHow to set custom properties in a Winforms control? - c #Why does Winforms.Button.Text work for a DataBinding but not ImageKey? - c #C #: not all code paths return a value - c #iPhone: UITableView flows like a Titanic! - objective-cRelative URLs on Sharepoint Home Page - relative-pathIs JRuby a viable alternative to MRI for Rails development? - ruby | fooobar.comCreating custom URL tokens in ASP.NET (a la MOSS) - asp.netSimple animations [iPhone] - iphoneDisplaying GXT RadioGroup or CheckBoxGroup Elements in Multiple Columns? - javascriptAll Articles