McAfee Interview Question
Software Engineer / DevelopersIn addition if you want to check whether stack grows upward or downward. Declare a local variable in main function. Print the variable's address. Call another function from main. Declare a local variable in the function. Print its address. Based on the printed addresses we can say stack grows up or down. –
- max July 11, 2011