tag:blogger.com,1999:blog-6314876008291942531.post8602913507349743885..comments2024-01-14T00:36:43.430-08:00Comments on Antonio Gulli's coding playground: What direction is the stack growing?Unknownnoreply@blogger.comBlogger1125tag:blogger.com,1999:blog-6314876008291942531.post-52255377673832509922010-05-24T14:56:28.394-07:002010-05-24T14:56:28.394-07:00void func ( const int arg1, const int arg2 )
{
...void func ( const int arg1, const int arg2 )<br />{<br /> if ( &arg1 > &arg2 ) // args pushed right to left in c<br /> {<br /> cout << "Stack grows up" << endl;<br /> }<br /> else<br /> {<br /> cout << "Stack grows down" << endl;<br /> }<br />}AKhttps://www.blogger.com/profile/03552400896683903007noreply@blogger.com