Wake up 1

1. go Pointer

Pointers process:

  • Defined pointer variable.
  • Assigned to the pointer variable.
  • Access points to the value of the pointer variable address.

In front of the symbol * pointer type (prefix) to obtain the content pointer points.

Examples

main Package

Import "FMT"

FUNC main () {
   var int = 20 is A / * Actual declare variables * /
   var IP int * / * declaration pointer variable * /

   IP & A = / * store address pointer variable * /

   fmt.Printf ( "address a variable is:% X \ n-', & a)

   / * store address pointer variable * /
   fmt.Printf (" ip pointer address stored in the variable:% X \ n-", ip)

   / * pointer to access value * /
   fmt.Printf ( "IP * values of variables:% D \ n-", * IP)
}

Examples of the above output is performed:

a address of the variable is: 20818a220  IP variable pointer address storage: 20818a220 * IP values of the variables: 20 2. Machine classification and regression algorithm 3. single convolution neural loss error SIGMOD 4. compositions architecture model, splicing assembly, micro service run independently queue trigger mechanism 5. oos object storage Service object store    additional, break, fragmentation, the object key MD5 checksum 6. Solutions Sishen needs 7. biological situation    











Guess you like

Origin www.cnblogs.com/chaowolf/p/11886501.html