Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //IFF - Introdução à Programação
- //Slide - Página 51 - Exercício 1
- #include<stdio.h>
- #include<locale.h>
- int main(){
- setlocale(LC_ALL,"Portuguese");
- int x, *ptr;
- printf("Entre com o valor de x: ");
- scanf("%d",&x);
- ptr=&x;
- printf("Valor da variável: %d.\nPosição de memória: %d.",*ptr,ptr);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment