C语言 extern4 全局数组
2024-08-24 06:36:28
headB.h中:
#ifndef headB_H
#define headB_H
int i = ;
int arr[]={,,,,};
#endif
.c文件中:
#include "headB.h"
#include <stdio.h> void main() {
int j=;
for (;j<;j++)
{
printf(" %d",arr[j]);
} printf("\n%d",i);
}
结果:
1 2 4 5 3
888 请按任意键继续. . .
最新文章
- Java集合框架List,Map,Set等全面介绍
- 问题解决:psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket ";/var/run/postgresql/.s.PGSQL.5432";?
- 【CodeForces 614A】Link/Cut Tree
- Spring面试题集
- reset.css(详细说明)
- 如何把本机Sql Sever数据库转移到虚拟主机sql数据库
- C# 之 AES加密源码
- iOS 正则表达式-判断邮箱、手机号
- 在浏览器运行 java applet时遇到的一些问题及其解决方法
- 04747_Java语言程序设计(一)_第2章_运算和语句
- popup_layer插件示例
- jsp内置对象-response对象
- 【jQuery】(1)---初次接触Jquery
- 【TYVJ 1056】能量项链
- webpack学习笔记 (二) html-webpack-plugin使用
- xxx征集系统项目目标文档
- 用grep 筛选fastq 序列
- Nhibernate学习
- php中比较好用的函数
- 查看window下默认ORACLE_SID
热门文章
- JQuery实现超链接鼠标提示效果
- mysql 数据库 切表的脚本
- Phone APP设计规范/iPad APP设计规范/Android APP设计规范/网页设计规范
- 编译Uboot时提示error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
- java中集合框架
- 让div显示在屏幕中央的css代码段
- 在 AngularJS 中将 XML 转换为 JSON
- Angular - - angular.element
- 【BZOJ1552】[Cerc2007]robotic sort Splay
- 我用Cocos2d-x模拟《Love Live!学院偶像祭》的Live场景(二)