当前位置:网站首页>Pointer learning diary (II)
Pointer learning diary (II)
2022-07-24 05:14:00 【Rain and cold at night in Xiaoxiang】
Declaring a pointer does not automatically allocate any memory ! Before performing indirect access to the pointer , The pointer must be initialized ;
Or make it point to the existing memory , Or dynamically allocate memory to him
It is illegal to perform an indirect access operation on an uninitialized pointer variable , And such errors are difficult to detect , It is often an irrelevant value ” innocent “ Be modified , This kind of error is difficult to find through debugging !
NILL A pointer is a pointer that doesn't point to anything . It can be assigned to a pointer , Used to indicate that the pointer does not point to any value .
!!! Yes NULL The consequences of indirect access operations performed by pointers vary from compiler to compiler (vs2019 The result is to terminate the program , The most important thing is that it won't report errors , Instead, it gets stuck directly during operation )
It is strongly recommended here because there is no detailed introduction c&c++ The brother of pointer textbook goes to see 《C And a pointer 》
If you are a big man, you can even go to see the pure English version .
边栏推荐
- frp内网穿透服务使用
- Codeforce:d2. remove the substring (hard version) [greedy string + subsequence]
- Chiitoitsu(期望dp)
- Chapter VI more supervision training
- MS simulated written test
- 微信朋友圈的高性能架构设计
- Chapter 7 other neural network types
- The network NN can calculate the NTCP provided by the host system
- 2. Input a circle radius r, when r > = 0, calculate and output the area and perimeter of the circle, otherwise, output the prompt information.
- What are the core strengths of a knowledge base that supports customers quickly?
猜你喜欢

利用a*启发式搜索解决迷宫寻路问题

Token of space renewable energy

How to set up an internal wiki for your enterprise?

太空可再生能源的代币化

PostgreSQL: run PostgreSQL + pgadmin 4 in docker

frp内网穿透服务使用

Want to know how a C program is compiled—— Show you the compilation of the program

Kingbase v8r6 cluster installation and deployment case - script online one click capacity reduction

Redis enhancements

Context encoders: feature learning by painting paper notes
随机推荐
智能指针、左值引用右值引用、lambda表达式
Context encoders: feature learning by painting paper notes
The x-fkgom supporting the GOM engine key.lic is authorized to start
。单类型数字传感一个应用程.0。 Up- 开址在出厂
Crazy God redis notes 09
Execution sequence of finally and return
Yum to see which installation package provides a command
Hcip-- review the homework for the next day
[Basic 6] - encapsulation and inheritance of classes, objects and classes
[basic 7] - exceptions, capture and customize exceptions
SHP building contour data restoration, 3D urban white film data production
Update C language notes
The second chapter is encog's data acquisition
Redis enhancements
Introduction to 51 single chip microcomputer (dedicated to the most understandable article for beginners)
作、Ho量有关。嵌入,只有一70的该接
EMQX 简单使用
1. There is a fractional sequence: 2/1, 3/2, 5/3, 8/5, 13/8,... Program to sum the first 20 items of this sequence.
1、基于增量式生成遮挡与对抗抑制的行人再识别
酒店IPTV数字电视系统解决方案