View difference between Paste ID: 17KirAVw and RKka6hJq
SHOW: | | - or go back to the newest paste.
1
double valores[100];
2
double sumatorio=0;
3
double *p;
4
int i;
5
6-
p=&valores[0];
6+
p = valores;
7-
for(i=0;i<100;i++){
7+
for (i=0;i<100;i++){
8-
sumatorio=sumatorio+*p;
8+
    sumatorio=sumatorio+*p;
9-
p++;
9+
    p++;
10
}