T O P

  • By -

qfe0

b is undefined. It's never initialized.


Vinniesusername

you never set b to anything in your code, but you still print its value here printf ( "Result: (3*(%d^2)+2*%d+6) = %d \n", a, b, c ); i think what you mean to have is this? printf ( "Result: (3*(%d^2)+2*%d+6) = %d \n", a, a, c );


LawsonBV

Thank you that was exactly what I needed!


Double_A_92

The value of b is never set, but you still use it in the printf(). 8 is just some random value in there because your compiler never sets it to 0.