当前位置:网站首页>Day 3 array, pre post, character space, keyword and address pointer
Day 3 array, pre post, character space, keyword and address pointer
2022-06-26 09:53:00 【51CTO】
1. You cannot use variables to specify the size of an array
example :
int a=10;
int arr[a]={0};
This program is wrong .



It can be seen from the above , Spaces and default added “\d” Also count one character respectively . But notice that "\0" The length of the string is not counted . But a space is a character .
2. Find the space occupied by characters

3. Front and back

4. key word

struct Structure keywords
union Consortium / Shared body
typedef The type definition
static int a Static local variables a, When modifying a local variable , Will make the life cycle of local variables longer
Don't use static when :

Use static when :

static When modifying global variables , Will change the scope of the global variable , Make global variables available only in the source file where they are located .
for example :
In the source file test_1 in :
int change_1=25;
In the source file test_2 in :
extern int chang_1
here chang_1 Can be in test_2 Use in , But if it is
static int change_1=25;
here chang_1 Not in test_2 Use in
5.#define Define constants and macros

6. Address of a pointer

边栏推荐
- WGCLOUD的web ssh服务端口是多少
- Badge collection 6:api\_ Use of level
- Redis notes (13) - scan and keys search for specific prefix key fields (command format, usage examples, locating large keys)
- SQL高级教程
- How to create an IE tab in edge browser
- install realsense2: The following packages have unmet dependencies: libgtk-3-dev
- Leetcode connected to rainwater series 42 (one dimension) 407 (2D)
- Cento7.7 elk installation simple record
- How about the security of flush stock trading software? How to open an account in flush
- The 100000 line transaction lock has opened your eyes.
猜你喜欢

The basis of C language grammar -- pointer (multidimensional array, function, summary) learning

Druid data source for background monitoring

c语言语法基础之——局部变量及存储类别、全局变量及存储类别、宏定义 学习

#云原生征文# 在 Google Kubernetes Cluster 上使用 HANA Expression Database Service

Redis notes (13) - scan and keys search for specific prefix key fields (command format, usage examples, locating large keys)

Redis notes (15) - Pipeline (the client packages and sends batch commands to save network overhead)

The basis of C language grammar -- learning of local variables and storage categories, global variables and storage categories, and macro definitions

Specific implementation comparison between different programming languages

Mysql database field query case sensitive setting

测试须知——常见接口协议解析
随机推荐
thymeleaf中抽取公共片段
Throttling, anti chattering, new function, coriolism
Wechat official account reported error 10003
The basis of C language grammar -- learning of local variables and storage categories, global variables and storage categories, and macro definitions
Basic grammar of C language -- pointer (character, one-dimensional array) learning
做测试需要知道的内容——url、弱网、接口、自动化、
Badge series 4: use of circle Ci
深度学习(初识tensorflow2.版本)之三好学生成绩问题(1)
Test instructions - common interface protocol analysis
logback
Problems encountered by jupyter notebook
【CVPR 2021】DatasetGAN: Efficient Labeled Data Factory with Minimal Human Effort
WIN10系统实现Redis主从复制
Flink入门——单词统计
druid数据源实现后台监控
我的创作纪念日
Single sign on logic
Notes on sports planning on November 22, 2021
2021-11-12 vrep视觉传感器配置
c语言语法基础之——局部变量及存储类别、全局变量及存储类别、宏定义 学习