Essential C Language Knowledge Before Revising 408

It is said that starred candidates have all succeeded in their exams.

Follow the guidance to avoid getting lost. Please recommend this to more graduate students.

Essential C Language Knowledge Before Revising 408Essential C Language Knowledge Before Revising 408Essential C Language Knowledge Before Revising 408

Essential C Language Knowledge Before Revising 408Hello everyone, this is Wangzai~

Essential C Language Knowledge Before Revising 408

Many students preparing for the 26th exam do not know how to review for 408, feeling completely lost.

They start by reviewing data structures, leading to confusion as many key concepts are hard to understand.

Here, Wangzai has listed some essential C language knowledge that must be mastered before starting the 408 review!

This will help everyone study more effectively~

Essential C Language Knowledge Before Revising 408

01

Data Types and Data Storage

Programs and data are stored in memory in binary form.
Data Storage: Memory allocates several storage units to store data in binary form, returning the address of the first unit as the address of that data. Every data storage includes address and type information.
Example: Storing the positive integer 345 in units 4, 5, 6, and 7, with the type being integer, thus occupying 4 bytes. The address is 4, and to retrieve this data, the address 4 must be provided, along with its type, to retrieve the 4 consecutive bytes.

Essential C Language Knowledge Before Revising 408

02

Variables

1. Definition
A variable represents a named storage unit with specific attributes used to store data, meaning the variable’s value can change during program execution.
A variable must be declared before use, specifying the name and type when defined, and can also specify an initial value.
Example: int a = 345;
Variable name: a
Variable value: 345
Specific attribute: integer, occupying 4B
2. Naming Rules
C language specifies that variable names can only consist of letters, digits, and underscores, are case-sensitive, and the first character must be a letter or underscore, not a digit.
Valid variable names: sum, total, lotus 1 2, Class
Invalid variable names: M.D.John, 3D64, ¥123

3. Common Data Types

Essential C Language Knowledge Before Revising 408

Essential C Language Knowledge Before Revising 408

Boolean (bool) Type: Represents a data type that indicates true and false.
C language did not have a bool type before the C99 standard, using 0, NULL to represent false, and non-0, non-NULL to represent true. C++ has a bool type, where true represents true and false represents false.
Custom Data Types
Struct: A data type consisting of a group of different data called members, which can be defined according to one’s needs, with each member potentially having a different type.

Essential C Language Knowledge Before Revising 408

Essential C Language Knowledge Before Revising 408
Essential C Language Knowledge Before Revising 408

Graduate students have their own New Year shopping festival!

Search for “999873” to receive special benefits at the @Aiqihang flagship store for 26th exam computer books!

Essential C Language Knowledge Before Revising 408

Click the card below to follow 【Aiqihang Computer Graduate Exam】

Get the latest information first

Success is just ahead 🌈

Wangzai will accompany you to success✊

Essential C Language Knowledge Before Revising 408

END

Essential C Language Knowledge Before Revising 408

Leave a Comment