当前位置:网站首页>Scattered knowledge of C language (unfinished)
Scattered knowledge of C language (unfinished)
2022-06-30 15:01:00 【Shadow_ shape】
Catalog
Photo Article ( Convenient for mobile phone viewing )
Units in a computer
bit bits
1001 0110 Every 2 Hexadecimal bits occupy one bit
byte byte 1byte = 8bit
A byte is a unit of data , And it's the smallest unit hardware can access
kb 1kb = 1024byte
mb 1mb = 1024kb
gb 1gb = 1024mb
tb 1tb = 1024gb
pb tpb = 1024tb
Reference header file
#include <stdio.h>
include Is the meaning of inclusion , Used to reference header files
main function
main Function is the entry of a program
In a project main There is and only one function
( There can be more than one in a project .c file , But many .c There can only be one... In the file main function )
Declare variables
In a project , When in B.c After defining global variables in the file , If you need to A.c Use this global variable in the file , You need to in A.c The global variable is declared in the file . for example :
extern int quanju1;
int main()
{
printf("%d\n", quanju1);
return 0;
} Photo Article ( Convenient for mobile phone viewing )

边栏推荐
- M - smooth engineering continuation (minimum spanning tree)
- Double pointer letter matching
- Machine learning feature selection
- 文本匹配——【NAACL 2021】AugSBERT
- [extensive reading of papers] analyzing connections between user attributes, images, and text
- [extensive reading of papers] multimodal joint attribute prediction and value extraction for e-commerce product
- Programming of left-hand trapezoidal thread
- Is it troublesome for CITIC futures to open an account? Is it safe? How much is the handling charge for opening an account for futures? Can you offer a discount
- Summary of C language interview questions
- 高精度CNC加工中心为什么会出现误差?这4个原因你要注意!
猜你喜欢

Sum of CCF digits (full mark code + problem solving idea) 201512-1

LIS error: this configuration section cannot be used in this path

Shift operator (detailed)

Error $(...) size is not a function

2021-05-12

CCF adjacent number pairs (Full Score code + problem solving ideas + skill summary) 201409-1

CCF numerical sorting (Full Score code + problem solving ideas + skill summary) 201503-2

Win10 one click Reset win10 to solve all system bugs without deleting any files and Applications

Shangpinhui knowledge points of large e-commerce projects

CCF drawing (full mark code + problem solving ideas + skill summary) February 2, 2014
随机推荐
[extensive reading of papers] multimodal joint attribute prediction and value extraction for e-commerce product
Maximum area of islands searched
Computer screenshot how to cut the mouse in
Programming of left-hand trapezoidal thread
1076 forwards on Weibo (30 points)
1066 root of AVL tree (25 points)
CCF string matching (Full Score code + problem solving ideas + skill summary) March 3, 2014
August 24, 2021 deque queue and stack
Error $(...) size is not a function
2021-07-14 mybaitsplus
PS dynamic drawing
1133: output family and friends string
Matlab finds prime numbers within 100
Clear the route cache in Vue
CCF window (Full Score code + problem solving idea) March 2, 2014
Pseudocode writing specification
Matlab judge palindrome number (only numbers)
1062 talent and virtue (25 points)
Matlab two-dimensional array example (extract data)
Binary rotation array (2)