Pointers in golang



Pointers in golang

Pointers in golang

Link to my programming Video Library:
https://courses.LearnCodeOnline.in/learn

Pick best UI color for your projects:
https://UIColorPicker.com

Desktop: https://amzn.to/2GZ0C46
Laptop that I use: https://amzn.to/2Goui9Q
Wallpaper: https://imgur.com/a/FYHfk

Facebook: https://www.facebook.com/HiteshChoudharyPage
Instagram: https://instagram.com/hiteshchoudharyofficial
homepage: http://www.hiteshChoudhary.com
Download LearnCodeOnline.in app from Google play store and Apple App store
https://play.google.com/store/apps/details?id=in.learncodeonline.lco

Disclaimer:
It doesn’t feel good to have a disclaimer in every video but this is how the world is right now.
All videos are for educational purpose and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.

All Amazon links are affiliate links (If any).

25 Comments

  1. Thanks for the clear explanation

    Summary:
    func main() {

    fmt.Println("Pointers")

    a := 10

    fmt.Println("Value of 'a': ", a)

    fmt.Printf("Type of 'a': %T", a)

    b := &a

    fmt.Println("Value of 'b': ", b)

    fmt.Println("Value of the variable whose address is stored at b: ", *b)

    fmt.Printf("Type of 'b': %T", b)

    }

    Output:
    Pointers

    Value of 'a': 10

    Type of 'a': intValue of 'b': 0xc00000e0c0

    Value of the variable whose address is stored at b: 10

    Type of 'b': *int

    Question:
    Why is the Type of 'b', asterisk int?

  2. could you please share these tutorial files ? If you've this somewhere may be on Git ?
    Thanks !

  3. Says that pointers are usually overexplained and then goes ahead and overexplains it 😂

  4. Put simply, learnt in C and stands true also for Go
    &a means memory address of a.
    var b= &a
    * b means value at memory address of a.

    Awesome video !!

  5. Sir please make video golang with dynamo db and redis please 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

  6. Very good explanation!
    It would be nice to show also an example to use pointer and reference with function usage. like calling a function which getting an argument by pointer.
    Anyway, Thanks a lot !!!

  7. I checked the type of reference object , to know everything works and it says it has the type of "*int" , which is a pointer!

Leave a Reply

Your email address will not be published. Required fields are marked *

© 2023 53GB - WordPress Theme by WPEnjoy