栈中变量的存放-strcpy

函数形参和局部变量是保存在栈中的,而栈是从高地址向低地址扩展的。缓存 #include <stdio.h> 安全 int main(void) { char s[]="123456789"; char d[]="123"; strcpy(d,s); printf("%s,/n%s",d,s); return 0; }函数 结果输出:123456789,56789。 解析:栈是从高地址向低地址扩展的
相关文章
相关标签/搜索