Function Problem

Joined
Nov 17, 2006
Messages
2
Reaction score
0
Hi, I'm new to C.
I wrote this as a function test, and I dont understand why it doesnt work...

Code:
#include <stdio.h>
int main(void)
{
	int a=2;
	int b=7;
	int Test(a,b);
	{
		return a+b;
	}
	printf("\n%d\n", Test(a,b));
	return 0;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,073
Messages
2,570,539
Members
47,197
Latest member
NDTShavonn

Latest Threads

Top