gpsgiraldi

2024_ponteiros_fun_with_pointers

Jul 2nd, 2024
589
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | Source Code | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main()
  5. {
  6.    
  7.     char vet[99];
  8.    
  9.     fgets(vet,98,stdin);
  10.     int tamanho=strlen(vet);
  11.     for(int i=0;i<tamanho-1;i++){
  12.         printf("%p %c\n", vet+i,vet[i]);
  13.     }
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment