Created
June 2, 2016 15:14
-
-
Save graifman/c4a7970d7826f0e0deefbf68cf1ab684 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
#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