Last active
August 24, 2019 13:07
-
-
Save aledruetta/fd12903ba9012c19d9e4d1e6960f44f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// declaramos uma estrutura "joao" de tipo Aluno | |
// e acessamos diretamente com o operador ponto | |
Aluno joao; | |
joao.nome = "João"; | |
// declaramos um ponteiro a uma estrutura e | |
// acessamos indiretamente com o operador seta | |
Aluno *ptr_joao = &joao; | |
ptr_joao->curso = "Produção" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment