create function funAdd2(@a int, @b int, @c int output)
returns int
as
begin
declare
@c = @a+@b

return (@c)
end

let me understand first why you need to pass a out parameter to a function.