#include <stdio.h>

int Add(int size, int a[]){
    int i, sum=0;
    for(i=0;i<size<i++)
        sum += a[i];
    a[0] = 20;
    return sum;
}

int main() {
    int i, b[3];
    b[0] = 2, b[1] = 4; b[2]=8;
    printf("the sum = %d\n", Add(3,b));
    for(i=0; i<3; i++) printf("%d", b[i]);
    printf("\n");
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: