#include <stdio.h>
#include <stdlib.h>

int soma(int *v, int n){
        if(n == 0){
            return v[0];
        } else{
            return v[n - 1] + soma(v, n + 1); 
        }
        
}

int main(void){
        int n = 2;
    
        int *v = malloc(n * sizeof(int));
 
}

Embed on website

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