当前位置:网站首页>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
边栏推荐
- Electric store stores data
- cuda编译报错
- February 20ctf record
- Large number operation (capable of square root, power, permutation and combination, logarithm and trigonometric value)
- 滲透測試-提權專題
- Word of the Day
- Use serialize in egg to read and write split tables
- Two dimensional array and function call cases of C language
- Two hours to take you into the software testing industry (with a full set of software testing learning routes)
- C style string
猜你喜欢

MySQL prevents Chinese garbled code and solves the problem of Chinese garbled code

Compatible with Internet Explorer

Personalized Federated Learning with Moreau Envelopes

SSRF-lab

Notes on non replacement elements in the line (padding, margin, and border)

BUUCTF(web:1-50)

Student achievement management system based on SSH

Create an environment for new projects

How to use the Magic pig system reinstallation master

Ranorex Studio 10.1 Crack
随机推荐
Integrate CDN to create the ultimate service experience for customers!
CUDA compilation error
Specific operations for uploading pictures in PHP
Click to jump out and drag the pop-up window
Everything is an object
How to choose the years of investment in financial products?
Native JS high risk reminder pop-up code snippet, "are you sure you want to do this?" and "it cannot be recovered after deletion. Do you want to continue“
Essais de pénétration - sujets d'autorisation
Go Basics
Eyeshot 2022 Released
Swift rapid development
Reading and writing of nodejs excel (.Xlsx) files
Notes on non replacement elements in the line (padding, margin, and border)
CopyPlugin Invalid Options options should be array ValidationError: CopyPlugin Invalid Options
Dynamic programming example 2 leetcode62 unique paths
JS function to realize simple calculator
Penetration information collection steps (simplified version)
ThinkPHP 5 log management
CSRF (Cross Site Request Forgery) &ssrf (server request forgery) (IV)
The print area becomes smaller after epplus copies the template