#include<stdio.h>
static int stack_dir;
static void find_stack_direction (void) {
static char *addr = NULL; /* address of first
`dummy', once known */
char dummy; /* to get stack address */
if (addr == NULL)
{ /* initial entry */
addr = &dummy;
find_stack_direction (); /* recurse once */
}
<
如何确定栈的增长方向地址是递增还是递减
最新推荐文章于 2022-10-28 09:27:04 发布