Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- main(){
- char nome[5] = "Maria",*ponteiroch;
- int idade=20, *pontint;
- float nota=7.0, *ptrfloat;
- printf("\n Nome:%s\n Idade:%d\n Nota:%.2f\n\n\n",nome, idade, nota);
- ponteiroch=&nome;
- *ponteiroch= "Joaoi";
- pontint=&idade;
- *pontint = 30;
- ptrfloat=¬a;
- *ptrfloat =6.0;
- printf("valores alterados pelo ponteiro:\n\n Nome:%s\n Idade:%d\n Nota:%.2f\n ", *ponteiroch, *pontint, *ptrfloat);
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement