当前位置:网站首页>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

边栏推荐
- Getting started with Flink - word statistics
- Redis notes (13) - scan and keys search for specific prefix key fields (command format, usage examples, locating large keys)
- SQL 函数
- 教你用shell脚本检测服务器程序是否在运行
- 自动化测试——pytest本身及第三方模块介绍及使用
- My creation anniversary
- 深度学习(初识tensorflow2.版本)之三好学生成绩问题(1)
- Jz2440 - - - utiliser le programme de gravure uboot
- Meaning of go runtime
- install ompl.sh
猜你喜欢

Force buckle ----- remove the maximum and minimum values from the array

Wechat official account reported error 10003

深度学习(初识tensorflow2.版本)之三好学生成绩问题(1)

Mysql database field query case sensitive setting

Jz2440 - - - utiliser le programme de gravure uboot

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

2021-11-22 运动规划杂记

Notes on sports planning on November 22, 2021

Test instructions - common interface protocol analysis

十万行事务锁,开了眼界了。
随机推荐
自动化测试——关于unitest与pytest初始化共存问题
Cento7.7 elk installation simple record
Specific meaning of go bootstrap
c语言语法基础之——函数嵌套、递归 小程序斐波那契之和、阶乘
SQL advanced tutorial
Champions League data set (Messi doesn't cry - leaving Barcelona may reach another peak)
thinkphp6.0的第三方扩展包,支持上传阿里云,七牛云
Js--- get the data with the same key value in the object array to get a new array
Why do some functions in the go standard library have only signatures but no function bodies?
Code statistics tools cloc and SCC
Custom interceptor
2021-11-29 轨迹规划五次多项式
Several connection query methods of SQL (internal connection, external connection, full connection and joint query)
Click the mask layer to close the pop-up window
Use recursion or a while loop to get the name of the parent / child hierarchy
节流,防抖,new函数,柯里化
Redis notes (14) - persistence and data recovery (data persistence RDB and AOF, data recovery, mixed persistence)
Speed test of adding, deleting, modifying and querying 5million pieces of data in a single MySQL table
Various errors encountered by tensorflow
MySQL单表500万条数据增、删、改、查速度测试