当前位置:网站首页>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
边栏推荐
- The article is on the list. Welcome to learn
- Install pytorch through pip to solve the problem that torch cannot be used in jupyter notebook (modulenotfoundererror:no module named 'Torch').
- First blog
- Dynamic programming Backpack - 01 Backpack
- Fundamentals of C language
- JSON Library Tutorial from scratch (II): parsing digital learning and sorting notes
- How micro engine uploads remote attachments
- Attack and defense world web baby Web
- CSRF (Cross Site Request Forgery) &ssrf (server request forgery) (IV)
- Example of dynamic programming 3 leetcode 55
猜你喜欢

Detailed summary of position positioning

Teach you to write non maintainable PHP code step by step

C language -- Sanzi chess

Eyeshot 2022 Released

Student achievement management system based on SSH

SSRF-lab

Flex flexible layout for mobile terminal page production

Wechat applet new version prompt update

Extend the toolbar of quill editor

UVA816 Abbott’s Revenge
随机推荐
2022.1.25
First blog
Eyeshot 2022 Released
Specific operations for uploading pictures in PHP
Duplicate symbols for architecture i386 clang
Professional things use professional people
How to make colleagues under the same LAN connect to their own MySQL database
XSS (cross site script attack) summary (II)
Creation and use of MySQL index
Dynamic programming example 1 leetcode 322 coin change
PHP uses JWT
Even if you are not good at anything, you are growing a little bit [to your 2021 summary]
Reading and writing of nodejs excel (.Xlsx) files
Keyboard key code value
Go Concurrency
TeeChart Pro ActiveX 2022.1
Go Context - Cancelation and Propagation
2022.1.21 diary
Laravel Vonage SMS sending
February 19 CTF exercise