You use variable double c
in the statement printf
. At that point, you haven't assigned a value to c
. That is what the warning, or error in your case, is telling you.
Update:
When you need the return value of funktion1
in funktion2
, you must pass it as a parameter, e.g.
int main()
{
double c;
c = funktion1();
funktion2(c);
}
/* ... */
void funktion2(double c)
{
printf("\n Result: %lf", c); //LINE 29
}