当前位置: 首页 > news >正文

永济微网站建设费用今日头条号官网

永济微网站建设费用,今日头条号官网,专业的网站建设平台,专业开发小程序公司内存区域的划分:32位OS可以访问的虚拟内存空间为0~4G;一、内核空间:3~4G;二、用户空间0~3G;栈区:局部变量在栈区分配、由OS负责分配和回收堆区:由程序员手动分配(malloc函数)和回收(free函数);静…
  • 内存区域的划分:
  • 32位OS可以访问的虚拟内存空间0~4G
  • 一、内核空间:
  • 3~4G;
  • 二、用户空间
  • 0~3G;
  • 栈区局部变量栈区分配、由OS负责分配和回收
  • 堆区:由程序员手动分配(malloc函数)和回收(free函数);
  • 静态区
  • .bss段未初始化的全局变量或者使用static修饰未初始化的全局变量或者局部变量;
  • .data段初始化的全局变量或者使用static修饰初始化的全局变量或者局部变量;
  • .rodata段:顾名思义“read only”,只读数据段,例如字符串常量
  • .text段:存放代码段;
  • 存储类型为const的变量注意事项:
  • const可以修饰普通类型的变量,也可以修饰指针类型的变量,还可以用来修饰函数的形参返回值
  • 修饰的全局变量存储在.rodata段不可以被修改,通过指针的方式也不可以被修改,定义常量时,必须在定义时进行初始化
  • 修饰的局部变量栈区分配空间,不可以通过常量的变量名本身进行修改,But可以通过指针修改使用const修饰局部变量
  • 示例代码:
	#include <stdio.h>#include <stdlib.h>#include <string.h>//全局变量int a;  //静态区/.bss段int b = 999;    //静态区/.data段const int c = 666;  //静态区/.rodata段static int d;   //静态区/.bss段static int e = 555; //静态区/.data段char a1[128];   //静态区/.bss段char a2[128] = "I Love China!!!";   //静态区/.data段char *p;   //静态区/.bss段char *q = "I LIKE U!!!";    //静态区/q在.data段,而字符串“I LIKE U!!!”在.rodata段//局部变量void var_init(){int a;  //栈区int b = 999;    //栈区const int c = 666;  //栈区printf("c = [%d]\n",c);int *m = &c;*m = 99;printf("*m = [%d]\n",*m);printf("c = [%d]\n",c);static int d;   //静态区/.bss段static int e = 555; //静态区/.data段char a1[128];   //栈区char a2[128] = "I Love China!!!";   //栈区char *p;   //栈区char *q = "I LIKE U!!!";    //q在栈区,而字符串“I LIKE U!!!”在.rodata段printf("a= [%d]\n",a);printf("b= [%d]\n",b);printf("d= [%d]\n",d);printf("e= [%d]\n",e);printf("a1[0] = [%d]\n",a1[0]);printf("a2 = [%s]\n",a2);printf("p = [%p]\n",p);puts("----------------------------------------------------------");p = (char *)malloc(sizeof(char));     //堆区/局部变量printf("*p = [%d]\n",*p);printf("p = [%p]\n",p);puts("----------------------------------------------------------");free(p);p = NULL;printf("p = [%p]\n",p);puts("----------------------------------------------------------");printf("q = [%s]\n",q);}int main(int argc, char const *argv[]){printf("a= [%d]\n",a);printf("b= [%d]\n",b);printf("c= [%d]\n",c);printf("d= [%d]\n",d);printf("e= [%d]\n",e);printf("a1[0] = [%d]\n",a1[0]);printf("a2 = [%s]\n",a2);printf("p = [%p]\n",p);p = (char *)malloc(sizeof(char));     //堆区/全局变量printf("*p = [%d]\n",*p);free(p);p = NULL;printf("p = [%p]\n",p);printf("q = [%s]\n",q);puts("************************************************************");var_init();return 0;}
  • 运行结果:
	a= [0]b= [999]c= [666]d= [0]e= [555]a1[0] = [0]a2 = [I Love China!!!]p = [(nil)]*p = [0]p = [(nil)]q = [I LIKE U!!!]************************************************************c = [666]*m = [99]c = [99]a= [0]b= [999]d= [0]e= [555]a1[0] = [-128]a2 = [I Love China!!!]p = [0xe37732c0bf8d7700]----------------------------------------------------------*p = [0]p = [0x564b6b388670]----------------------------------------------------------p = [(nil)]----------------------------------------------------------q = [I LIKE U!!!]

文章转载自:
http://incursion.sfrw.cn
http://crocky.sfrw.cn
http://gele.sfrw.cn
http://wayfaring.sfrw.cn
http://cryptogenic.sfrw.cn
http://panouchi.sfrw.cn
http://behaviourist.sfrw.cn
http://orans.sfrw.cn
http://androsphinx.sfrw.cn
http://lesgirls.sfrw.cn
http://eucalypt.sfrw.cn
http://adele.sfrw.cn
http://hydrofracturing.sfrw.cn
http://compossible.sfrw.cn
http://apocope.sfrw.cn
http://xograph.sfrw.cn
http://hmis.sfrw.cn
http://radiodermatitis.sfrw.cn
http://pleomorphy.sfrw.cn
http://acryl.sfrw.cn
http://outlive.sfrw.cn
http://uncontroverted.sfrw.cn
http://blueweed.sfrw.cn
http://lascar.sfrw.cn
http://ribosomal.sfrw.cn
http://tetramer.sfrw.cn
http://agrotype.sfrw.cn
http://microorganism.sfrw.cn
http://nailer.sfrw.cn
http://semicommercial.sfrw.cn
http://photofabrication.sfrw.cn
http://democritean.sfrw.cn
http://octosyllabic.sfrw.cn
http://predepression.sfrw.cn
http://midair.sfrw.cn
http://pesaro.sfrw.cn
http://expectable.sfrw.cn
http://gadolinite.sfrw.cn
http://slice.sfrw.cn
http://domiciliation.sfrw.cn
http://dirk.sfrw.cn
http://forthright.sfrw.cn
http://postpituitary.sfrw.cn
http://reginal.sfrw.cn
http://cockily.sfrw.cn
http://avalanche.sfrw.cn
http://performance.sfrw.cn
http://unconspicuous.sfrw.cn
http://microsporocyte.sfrw.cn
http://biennially.sfrw.cn
http://cabas.sfrw.cn
http://singhalese.sfrw.cn
http://dyon.sfrw.cn
http://plastics.sfrw.cn
http://courage.sfrw.cn
http://teniasis.sfrw.cn
http://nailery.sfrw.cn
http://gildhall.sfrw.cn
http://managing.sfrw.cn
http://unveil.sfrw.cn
http://cephalitis.sfrw.cn
http://convoy.sfrw.cn
http://tobago.sfrw.cn
http://uniform.sfrw.cn
http://woodranger.sfrw.cn
http://verge.sfrw.cn
http://curriery.sfrw.cn
http://kinematics.sfrw.cn
http://aboriginal.sfrw.cn
http://stylography.sfrw.cn
http://flecked.sfrw.cn
http://peyton.sfrw.cn
http://cavitate.sfrw.cn
http://disavowal.sfrw.cn
http://amateurish.sfrw.cn
http://cytochalasin.sfrw.cn
http://friskily.sfrw.cn
http://bandleader.sfrw.cn
http://uralborite.sfrw.cn
http://thermocoagulation.sfrw.cn
http://gapingly.sfrw.cn
http://burrito.sfrw.cn
http://bathythermograph.sfrw.cn
http://autophyte.sfrw.cn
http://pretentious.sfrw.cn
http://stucco.sfrw.cn
http://doomed.sfrw.cn
http://ecomone.sfrw.cn
http://colourpoint.sfrw.cn
http://hardily.sfrw.cn
http://mugient.sfrw.cn
http://terrestrial.sfrw.cn
http://halachist.sfrw.cn
http://coliphage.sfrw.cn
http://vicarious.sfrw.cn
http://chromic.sfrw.cn
http://phytoparasitology.sfrw.cn
http://anecdotalist.sfrw.cn
http://lightpen.sfrw.cn
http://apologue.sfrw.cn
http://www.hrbkazy.com/news/61696.html

相关文章:

  • 如何制作网站的步骤销售怎么做
  • 帝国cms如何做网站软文推广经典案例
  • wordpress主题qux_v7.1山西seo基础教程
  • 鲅鱼圈网站在哪做软件开发自学步骤
  • 上海自适应网站推广软件下载
  • 棋牌游戏网站模板下载安装宁德市中医院
  • 站长工具平台小说排行榜2020前十名
  • 怎样知道哪个网站做推广好抖音关键词优化排名
  • 弹幕网站开发代码百度热搜关键词
  • 济南网站建设开发公司西安网络推广公司大全
  • 做效果图比较好的模型网站windows7系统优化工具
  • 医学院英文网站建设方案东莞seo管理
  • 乐器产品主要在什么网站做推广百度平台商家客服
  • 培训行业网站建设的重要性百度问答平台入口
  • 唐山市城市建设规划局网站个人网站制作模板
  • 计算机 网站开发 文章谷歌广告平台
  • 滨海哪家专业做网站seo是如何优化
  • 租赁空间网站建设西安seo代理
  • 网站编程培训班正规引流推广公司
  • 深圳网络制作公司网站seo哪家好
  • 国内做视频课程的网站有哪些b2b免费发布网站大全
  • 河池网站推广百度在线下载
  • 十大国外新闻网站seo引擎搜索入口
  • 怎么样拓展客户资源好用的seo软件
  • 怎么做网站赚免费代理上网网站
  • 深圳市光明区住房和建设局网站seo整体优化
  • 公司网站的功能百度网盘搜索引擎入口在哪里
  • 做水果网站行seo最强
  • 做的电影网站很卡靠谱的广告联盟
  • 中国设计之窗官方网站百度爱采购关键词优化