Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stack space

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i just took the exam 70-176 today and passed with 900. i was just wondering if somebody have any idea about this question. its just driving me nuts...
it was asking something about will NOT always reduce the amount of stack space. the choices were 1.)using integer data type instead of variant data type 2.)using local fixed-length strings rather than local variable-length strings. 3.)and something else....

my answer was number 2

please explain because its driving me crazy not to know if i got that question or not
 
(1) - Local variables are stored on the stack, so switching from variants to integers or longs will reduce the amount of space needed.

(2) - Similar to (1) above -- fixed-length strings are stored on the stack, variable length strings are stored on the heap

(3) - something else.

So if the idea is NOT to reduce the stack, the answer is likely to be #2, since it will increase the amount of stack space used. (depends on what question #3 was)

Chip H.
 
Chip, do you happen to know where on the MSDN they talk about this topic? i looked around MSDN and i couldn't find it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top