Here is my code
Code:
/* A simple C program that takes
* two values and invoke a function with
* pass by value */


# include <stdio.h>
# include <stdlib.h>


int main() {
system("cls");


//Prompting user to enter two numbers
int num1, num2, sum;
printf("User enter first number to be added: ");


//Storing first number in num1
scanf("%d", num1);




printf("User enter second number to be added: ");
scanf("%d", num2);


sum  = 0;


sum = add_Func(num1, num2, sum);


printf("User added answer is %d", sum);


return 0;
}


int add_Func(int x, int y, int &sum) {
printf("User adding %d and %d", x, y);


sum = x + y;


return sum;
}
Error is shown in Line 31


||=== Build: Release in eg01 (compiler: GNU GCC Compiler) ===|
C:\Users\Dushyant\cProjects\eg01\main.c||In function 'main':|
C:\Users\Dushyant\cProjects\eg01\main.c|16|warning : format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat]|
C:\Users\Dushyant\cProjects\eg01\main.c|20|warning : format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat]|
C:\Users\Dushyant\cProjects\eg01\main.c|24|warning : implicit declaration of function 'add_Func' [-Wimplicit-function-declaration]|
C:\Users\Dushyant\cProjects\eg01\main.c|31|error: expected ';', ',' or ')' before '&' token|
||=== Build failed: 1 error(s), 3 warning(s) (0 minute(s), 0 second(s)) ===|



Please reply soon. That's necessary