Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int suma(char* tab[], int dlugosc)
- {
- int wynik = 0;
- int i;
- for(i=1;i<dlugosc;i++)
- wynik+=atoi(tab[i]);
- return wynik;
- }
- int main(int argc, char* argv[])
- {
- int x = suma(argv, argc);
- printf("Wynik sumowania to: %d\n", &x);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement