So - I've 2 numbers and result ( num1 * num2 ) ! Why I keep getting crazy numbers ( 2*3 is 6 not 72 ) ?
result = (num1 * num2); Code (markup): should be after num1 = 2; num2 = 3; Code (markup): Simplier you could just type: int num1 = 2; int num2 = 3; int result = (num1 * num2); Code (markup):
Did what you said, did what others said ( google ) - still the same ! Will try to reinstall my stuff ( compiler, etc. ) ..
num1 and num2 are assigned values after definition of the variables... crazy no.s will occur everytime bcoz compiler uses garbage values since at the time of calculation (num1*num2) the variables are not having the values. do rply if it solved ur problem.... thankx...