Advertisement
CotaIgnorada

Variables local

Oct 23rd, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.62 KB | None | 0 0
  1. /*programa con la variable local*/
  2. #include<stdio.h>
  3.          void funcionA(int x){
  4.               x--;
  5.               printf("Funcion A %d\n", x);
  6.          }
  7.          void funcionB(int x){
  8.                 x++;
  9.                printf("Funcion B %d\n", x);
  10.          }
  11.          void funcionC(int x){
  12.                 x--;
  13.                 printf("Funcion C %d\n", x);
  14.        }
  15.          int main(){
  16.                          int x=0;
  17.                     printf("Ingrese un valor de x\n");
  18.                     scanf("%d",&x);
  19.                     funcionA(x);
  20.                     funcionB(x);
  21.                     funcionC(x);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement