09 storage of data in memory

This blog takes you to understand the storage of C language shaping and floating point in memory. Through this blog, we will have a further understanding of memory. 1, Review data types We have already learned about the built-in data types in C language: char //Character data types, such as a, b, c! Equal character short //Sh ...

Added by luitron on Thu, 20 Jan 2022 11:42:35 +0200

Detailed explanation of two-way leading circular linked list - > attached c language to create linked list code

catalogue 1, What is a two-way circular linked list II Advantages and disadvantages of two-way cyclic linked list III How to create a two-way circular linked list IV Specific code 1, What is a two-way circular linked list Definition: lead two-way circular linked list: the most complex structure, which is generally used to store data sepa ...

Added by cloudbase on Thu, 20 Jan 2022 08:26:42 +0200

Functions in C language

1. What is the function? In computer science, a subroutine is a part of code in a large program, which is composed of one or more statement blocks. It is responsible for completing a specific task and has relative independence compared with other codes. Generally, there are input parameters and return values, which provide encapsulation of ...

Added by joeiscoolone on Thu, 20 Jan 2022 03:30:02 +0200

Learning notes on Linux C application development -- Socket socket

Network socket Basic skills: two languages, one scripting language. Implement the function first. Discussion: problems needing attention in cross host transmission. 1. Byte order problem: large end storage: high byte at low address Small end storage: lower byte at X86 low address 0x00 00 00 05 Da 05 00 00 00 Small 00 00 05 Distinguish between ...

Added by rlalande on Thu, 20 Jan 2022 02:42:11 +0200

C language beginner level - 2 function

In the last blog, we mentioned the branches and loops of C language. In this blog, I'll share the relevant knowledge of C language functions. Please open your eyes and have a good look (HA HA). When it comes to functions, the first thing we think of is mathematical functions. This very interesting and practical knowledge in the field of math ...

Added by kornlord283 on Thu, 20 Jan 2022 01:49:08 +0200

C language - dynamic library of "function registration and callback model": realizing the interaction between modules (low coupling)

Background: write a dynamic library of modules and provide necessary header files and demo s. Thinking: first, make it clear that the library to be written provides several interfaces to the outside world. Read the structure of the relevant header file and the functions to be used in the library written by yourself. In the actual project deve ...

Added by curtis_b on Thu, 20 Jan 2022 01:21:12 +0200

Embedded software development day4

requirement practice Classroom code - teacher's explanation (review!!!) Practice in class - teacher's explanation Homework after class - for example: 20 questions, 5 of which will be explained in class. Write the ones that will be explained first Self study after class C language 100 questions - do it yourself (do it if you have ide ...

Added by AbydosGater on Thu, 20 Jan 2022 01:17:38 +0200

Concise file operation under Linux Linux

1 lseek function Function: off_t lseek(int fd, off_t offset, int whence) Header file: #include < unistd h> #include <sys/types. h> Parameter: fd file descriptor Offset offset, which can be positive or negative The starting position of the where offset can be set in three ways SEEK_SET #Start position The file offset ...

Added by StefanRSA on Thu, 20 Jan 2022 00:55:23 +0200

It's almost the new year. Don't worry about playing. Learn to relax and study all year

catalogue ​ Pointer What is a pointer and what is the relationship between a pointer and memory Pointer variable Basic operation of pointer &The address represents the address of the variable, and * represents a dereference of the variable found according to the address Size of pointer variable Type of pointer variable Conclusion ...

Added by helpmeplease1234 on Wed, 19 Jan 2022 20:48:03 +0200

[C language] common debugging skills - entering the code

What is a bug?What is debugging? How important is debugging capability?A brief introduction to debug and releaseIntroduction to debugging under windows EnvironmentSome examples of debuggingHow to write code that is easy to debug?Common errors in C programmingSimulate the implementation of strcpy and strlen library functions Test environment: vs ...

Added by Cleibe on Wed, 19 Jan 2022 20:27:45 +0200