Created
August 14, 2012 02:19
-
-
Save iKlsR/3345797 to your computer and use it in GitHub Desktop.
stupid.. i hate **kwargs :) no i love it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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