int result = 15/2;
is it that result will now be 7 or 7.5. based on my understanding it will be 7. since it is returning an integer. am I correct to say that the .5 will be discarded.
|CodeGuru Home||VC++ / MFC / C++||.NET / C#||Visual Basic||VB Forums||Developer.com|
Results 1 to 8 of 8
Thread: Return int
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!