Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include<stdlib.h>
  2. #include<stdio.h>
  3.  
  4.  
  5.  
  6. int main() {
  7.  
  8.     int a, * x;
  9.     float b, * y;
  10.     char c, * z;
  11.  
  12.  
  13.     printf("Valores antes da alteracao: %d, %.2f, %c\n", a, b, c);
  14.  
  15.     x = &a;
  16.     y = &b;
  17.     z = &c;
  18.  
  19.  
  20.     *x = 80;
  21.     *y = 13.80;
  22.     *z = "p";
  23.  
  24.     printf("Valores apos alteracao: %d, %.2f, %c\n", a, b, c);
  25.  
  26.  
  27.  
  28.  
  29.     system("pause");
  30.     return 0;
  31.  
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement