[ create a new paste ] login | about

Link: http://codepad.org/lG5i4Oiy    [ raw code | output | fork ]

C++, pasted on Jun 1:
#include<iostream>
int array[10];

void some_function(int array[]){
    for(int i = 0; i<=9;i++)
    {
        array[i]=i;
    }
}

//static int dummy = (some_function(array), 0);



int main()
{
    for(int i = 0; i<=9;i++)
    {
        std::cout<<std::endl<<array[i];
    }
    
}


Output:
1
2
3
4
5
6
7
8
9
10
11

0
0
0
0
0
0
0
0
0
0


Create a new paste based on this one


Comments: