SHARE
TWEET

ESTRUTURAS DE DADOS 11

EsdrasSantosOliveira Feb 14th, 2020 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4. #include <string.h>
  5. #include <ctype.h>
  6. #include <time.h>
  7. #include <string.h>
  8. int main()
  9. {
  10.     //CRIAR AS VARIAVEIS
  11.     int vet[5];
  12.     int i;
  13.     int * ponteiro;
  14.     ponteiro=&vet[0];
  15.     for(i=0;i<5;i++)
  16.     {
  17.         printf("\nDIGITE O VETOR: ");
  18.         scanf("%d",&*(ponteiro+i));
  19.     }
  20.     printf("\n");
  21.     for(i=0;i<5;i++)
  22.     {
  23.  
  24.         printf("\n%d",*(ponteiro+i)*2);
  25.  
  26.     }
  27.  
  28.  
  29.  
  30.     return 0;
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top