Skip to content

Instantly share code, notes, and snippets.

@iKlsR
Created August 14, 2012 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iKlsR/3345797 to your computer and use it in GitHub Desktop.
Save iKlsR/3345797 to your computer and use it in GitHub Desktop.
stupid.. i hate **kwargs :) no i love it
#include "iostream"
using namespace std;
int unpack(int array[], int size) {
int index = 0;
int i = 0;
for(; i < size; ++i)
cout << i << " : " << array[i] << endl;
}
int main(int argc, char const * argv[]) {
int array[] = {12, 12, 12, 14, 1, 2, 3};
unpack(array, 7);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment