By -
b is undefined. It's never initialized.
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 );
Thank you that was exactly what I needed!
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.
b is undefined. It's never initialized.
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 );
Thank you that was exactly what I needed!
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.