Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Length (0.19 sec)

  1. doc/go1.17_spec.html

    </p>
    
    <pre>
    p1 := &amp;[]int{}    // p1 points to an initialized, empty slice with value []int{} and length 0
    p2 := new([]int)  // p2 points to an uninitialized slice with value nil and length 0
    </pre>
    
    <p>
    The length of an array literal is the length specified in the literal type.
    If fewer elements than the length are provided in the literal, the missing
    elements are set to the zero value for the array element type.
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
Back to top