[ create a new paste ] login | about

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

C, pasted on Jul 6:
1
2
3
4
5
6
7
8
9
10
11
func(int iA, int iB)
	{
		int iA;
		iA=40;
		return iA;
	}
	int main()
	{
		printf(" func = %d\n ", func(5,10) );
		return 0;
	}


Output:
1
2
3
In function 'func':
Line 3: error: 'iA' redeclared as different kind of symbol
Line 1: error: previous definition of 'iA' was here


Create a new paste based on this one


Comments: