Array as Vector

Run Settings
LanguageC
Language Version
Run Command
#include <stdio.h> void v2Add(int* First, int* Second, int* Result) { Result[0] = First[0] + Second[0]; Result[1] = First[1] + Second[1]; } int main() { int a[] = {3,7}; int b[] = {2,3}; int c[2] = {}; v2Add(a,b,c); printf("%i , %i\n",c[0],c[1]); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines