Skip to content

Instantly share code, notes, and snippets.

@graifman
Created June 2, 2016 15:14
Show Gist options
  • Save graifman/c4a7970d7826f0e0deefbf68cf1ab684 to your computer and use it in GitHub Desktop.
Save graifman/c4a7970d7826f0e0deefbf68cf1ab684 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct aluno{
char nome[30];
int ra;
};
int main()
{
struct aluno a1;
struct aluno *p1;
gets(a1.nome);
scanf("%d",&a1.ra);
p1=&a1;
p1->ra;
printf("%d",p1->ra);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment