当前位置:网站首页>About the definition of pointer variables (personal notes)
About the definition of pointer variables (personal notes)
2022-06-25 05:21:00 【Moblize】
#include <stdio.h>
int main()
{
char f='A';
int b=123;
char *pa=&f;/* Define a character pointer address variable *pa: The function is to point to an address
Now? *pa Pointing at f The address of this variable , And there is a variable in the address of this variable A*/
int *pb=&b;// Empathy
printf("%c\n",*pa);
printf("%d",*pb);
return 0;
}
// *pa It's a pointer variable ( It's an arrow , Used to point to )
// *pa=&f It is this pointer variable that now points to f This address , You can change the variables in this address
/* Imagine having two rooms , One room is f , The other room is pa Now? f There is... In the room
A This man , The use *pa=&f said pa There can also be... In this room A This man , Do you use
*pa=& other that ,pa This room will allow other In this room */
If there is a mistake , Please point out
边栏推荐
- Array: force deduction dichotomy
- How to choose the years of investment in financial products?
- The article is on the list. Welcome to learn
- Svg code snippet of loading animation
- How micro engine uploads remote attachments
- Dynamic programming example 2 leetcode62 unique paths
- The construction and usage of wampserver framework
- Penetration test - directory traversal vulnerability
- Reading and writing of nodejs excel (.Xlsx) files
- File upload vulnerability (III)
猜你喜欢

Array and simple function encapsulation cases

Baidu ueeditor set toolbar initial value

Dynamic programming example 2 leetcode62 unique paths

Summary of SQL injection (I)

Working principle of asemi three-phase rectifier bridge

渗透测试-提权专题

IronOCR 2022.1 Crack

What is Ethernet and how to connect the computer

The construction and usage of wampserver framework

How to open the DWG file of the computer
随机推荐
Array: force deduction dichotomy
CUDA compilation error
How to download and use Xiaobai one click reload on the official website
Go deep into the working principle of browser and JS engine (V8 engine as an example)
How to choose the years of investment in financial products?
Click to jump out and drag the pop-up window
C style string
Integrate CDN to create the ultimate service experience for customers!
Essais de pénétration - sujets d'autorisation
Visual studio 2022 interface beautification tutorial
Uva1103 ancient pictograph recognition
API interface management setup -eolinker4.0
Stack and Queue
Install pytorch through pip to solve the problem that torch cannot be used in jupyter notebook (modulenotfoundererror:no module named 'Torch').
Ctfhub eggs
Makefile Foundation
Use js to simply implement the apply, call and bind methods
Dynamic programming Backpack - 01 Backpack
Extend the toolbar of quill editor
Google Earth engine (GEE) - Global jrc/gsw1_ 1 / batch download of yearlyhistory dataset (China region)