程序设计考试大纲(高级程序员级)
2007-12-13 16:54
316 查看
The following little code shows the effects of .rodata, .data and .bss sections.
#include <stdio.h> // y_readonly is in data seciton. "123" is in rodata section. // y_readonly is a poniter variable. And compiler sets the value of y_readonly // to the address "123". char *y_readonly = "123"; // "abc" is in data section. j_data is the address of "abc" not a pointer // variable. char j_data[] = "abc"; // bss section char bss_data[3000]; int main(int argc, const char *argv[]) { // Trigger segement fault // y_readonly[0] = 'X'; return 0; }
相关文章推荐
- 程序设计考试大纲(高级程序员级)
- 程序设计考试大纲(高级程序员级)
- PAT 计算机程序设计能力考试
- 软件设计师(高级程序员)考试大纲
- 最新信息系统项目管理师(系统集成高级项目经理)考试大纲
- .NET框架设计(高级框架架构模式)—钝化程序、逻辑冻结、冻结程序的延续、瞬间转移
- XTU 程序设计实践模拟考试题1
- 程序设计实训报告-小学生考试系统
- 自考-高级程序语言设计(C语言)
- 程序设计实习2015年期末考试 E.DNA(状态压缩dp+特殊处理+预处理)
- java web程序 上机考试登陆界面设计实现
- 程序员级考试大纲(2004年新版)
- 二级MSOffice高级应用考试大纲(2013年版)
- 自考-高级程序语言设计(C语言)
- HZNU2016年秋季学期程序设计基础第一次考试题解
- 《JavaScript 高级程序设计》读书笔记(一) - 基本概念(一)
- 二级C++语言程序设计考试大纲(2013年版)
- 软件开发工程师(JAVA)中级考试大纲之----五 J2EE WEB高级组件开发(二)Web过滤器组件技术、Web监听器组件技术;
- 程序设计实训项目一 小学生考试系统
- PAT 计算机程序设计能力考试