[ create a new paste ] login | about

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

C++, pasted on Nov 3:
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

int f(int x)
{
    const int y = 2 * x + 1;
    return y;
}

int main()
{
    printf("%d\n", f(3));    
}


Output:
1
7


Create a new paste based on this one


Comments: