Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*programa con la variable local*/
- #include<stdio.h>
- void funcionA(int x){
- x--;
- printf("Funcion A %d\n", x);
- }
- void funcionB(int x){
- x++;
- printf("Funcion B %d\n", x);
- }
- void funcionC(int x){
- x--;
- printf("Funcion C %d\n", x);
- }
- int main(){
- int x=0;
- printf("Ingrese un valor de x\n");
- scanf("%d",&x);
- funcionA(x);
- funcionB(x);
- funcionC(x);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement