Home › Forums › C Programming › Result is only TRUE. › Reply To: Result is only TRUE.
April 12, 2008 at 3:48 am
#3377
niklaesh
Participant
@Gramdtante wrote:
123 void showResult(int res){ <br />cout<<"The result is "<<showResult << endl;<br />}
Hello,you are not trying to print the result, as you can see variable res stores the result of the multiplication, but your are printing the result anywhere….You showResult function should look like
1 2 3 4 | void showResult(int res){<br /> cout<<"The result is "<<res<< endl;<br /> }<br /> |