Generation

generate functionWed, 31 May 2023

realiza una suma de vectores de dos en dos a 30 posiciones

int* sumar(int* a, int* b, int pos){ int* c = new int[pos]; for(int i=0; i<pos; i++){ c[i] = a[i]+b[i]; } return c; }

Want to kickstart your project?Use the new AI Studio to create your code