Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void funciontest(int variable1,int variable2,int *variable3);
- int main(int argc, char *argv[])
- {
- int variable = 0;
- int f =0;
- printf("Mostrnado el valor de la varible:[%d]\n", variable);
- for(f = 0; f<=10000;f++){
- funciontest(9);
- }
- return 0;
- }
- void funciontest(int variable1,int variable2,int *variable3)
- {
- int *variable3;
- int variable1[10];
- int variable2;
- int f;
- variable3 = (int*)malloc(sizeof(int) * 100000);
- printf("Mostranado el valor de la varible1:[%d]\n", variable1);
- printf("Mostranado el valor de la varible2:[%d]\n", variable2);
- for(f=0;f<100000;f++)
- {
- *(variable3 + f)=f * 2;
- printf("Mostranado el valor de la varible1:[%d]\n", *(variable3 + f));
- }
- for(f=0;f<100000;f++)
- {
- variable[f]=f*2;
- printf("Mostrando el varlor de la variable en la posicion[%d]=%d\n", f, variable[f]);
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement