当前位置:网站首页>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 )

边栏推荐
- Average and maximum values of MATLAB matrix
- 1031 Hello world for u (20 points)
- Working principle and fault treatment of cutting cylinder in CNC machining center
- Basic requirements for tool use in NC machining of vertical machining center
- Matlab to find prime pairs within 100
- Win10 one click Reset win10 to solve all system bugs without deleting any files and Applications
- CCF sequence segmentation (Full Score code + problem solving idea) 201509 -1
- 1066 root of AVL tree (25 points)
- Why do high precision CNC machining centers have errors? You should pay attention to these four reasons!
- IO interview questions
猜你喜欢

Sum of CCF digits (full mark code + problem solving idea) 201512-1
![[matlab] 2D drawing summary](/img/de/6bb5385f440a2997dbf9cbb9a756eb.jpg)
[matlab] 2D drawing summary

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

CCF window (Full Score code + problem solving idea) March 2, 2014

CCF elimination games (Full Score code + problem solving ideas + skill summary) February 2, 2015

day02

How does hbuilder display in columns?
![[matlab] 3D drawing summary](/img/57/05156340ccdd79b866c4df955b3713.jpg)
[matlab] 3D drawing summary

Knowledge learned from the water resources institute project

Lihongyi machine learning 2020 homework summary
随机推荐
1058 a+b in Hogwarts (20 points)
Summary of C language interview questions
Is pioneer futures safe? What are the procedures for opening futures accounts? How to reduce the futures commission?
1031 Hello world for u (20 points)
Color classification of sorting
[matlab] 3D drawing summary
高精度CNC加工中心为什么会出现误差?这4个原因你要注意!
Sum of CCF digits (full mark code + problem solving idea) 201512-1
Sorting by character frequency
Matlab judges the number of same purchases
Shift operator (detailed)
1135: paired base chain
catkin_ Make reports an error, transfers the location of the workspace, and uses other people's workspace files to cause compilation errors
Steps for commissioning of vertical machining center
Judgment of deep learning experiment results
Vue returns to the previous page without refreshing the page / Vue caches the page
机械工程师面试的几个问题,你能答上来几个?
Experiment 2: stack
IO interview questions
[extensive reading of papers] attributes guided facial image completion