Difference between revisions of "Workshop 2"

From CDOT Wiki
Jump to: navigation, search
Line 1: Line 1:
 
'''Q:'''Is the output for workshop 2 still suppose to be time or something else?<br>
 
'''Q:'''Is the output for workshop 2 still suppose to be time or something else?<br>
'''A:'''No, it is supposed to just swap the values of each variables passed to swap function and display them in the main function.
+
'''A:'''No, it is supposed to just swap the values of each variables passed to swap function and display them in the main function.<br>
<br>Submitted by: Shayan Vaghei & Mohamed Baig Team#4
+
'''Submitted by:''' Shayan Vaghei & Mohamed Baig Team#4<br><br>
 +
 
 +
'''Q:'''Unsigned long longs are the same size as doubles. Currently, unsigned longs are swapping just fine after being cast as doubles, but I was wondering if we were supposed to differentiate between the two. If so, how can you do it when the only argument is size?<br>
 +
'''Submitted by:''' Kevin Kofler, Team 9<br><br>

Revision as of 13:23, 20 September 2012

Q:Is the output for workshop 2 still suppose to be time or something else?
A:No, it is supposed to just swap the values of each variables passed to swap function and display them in the main function.
Submitted by: Shayan Vaghei & Mohamed Baig Team#4

Q:Unsigned long longs are the same size as doubles. Currently, unsigned longs are swapping just fine after being cast as doubles, but I was wondering if we were supposed to differentiate between the two. If so, how can you do it when the only argument is size?
Submitted by: Kevin Kofler, Team 9