week1--Learning functions, pointers, and strings

Some basic knowledge of functions 1. Format of function definition: Return value type function name (parameter list) { Code Body return x;(x is of type return value) } For example: int add(int a,int b) (void Do not use this type return) { int sum=a+b; return sum; } Function classification: library function; Functions that come with the sy ...

Added by ICEcoffee on Wed, 19 Jan 2022 19:44:17 +0200

MSP430F5529 DriverLib library function learning notes UART communication

Platform: Code Composer Studio 10.3.1 MSP430F5529 LaunchPad™ Development Kit (MSP‑EXP430F5529LP) Hard knowledge USCI communication module Universal serial communication interface (usci) module supports multiple serial communication modes, and different usci modules support different communication modes. Each different usci module is n ...

Added by psych0 on Wed, 19 Jan 2022 14:54:04 +0200

C language - double pointer, two-dimensional array

1. Double pointer (1) Difference between double pointer and ordinary single pointer ->In essence, the essence of double pointer and single pointer is pointer variable, and the essence of pointer variable is variable. ->Both the single pointer variable and the double pointer variable themselves occupy 4 bytes of memory space. (2) The e ...

Added by mrvanjohnson on Wed, 19 Jan 2022 02:38:19 +0200

C language beginner - pointer

Today, we are going to learn about pointers in C language. Pointer can be said to be a heavy role in C language. We can understand and master pointer. In the future, when we write code, we feel like a fish in water and at ease. Next, let's have a look!!! Contents of this chapter: 1. What is the pointer? In computer science, a pointer is an ob ...

Added by ryan.od on Tue, 18 Jan 2022 13:10:35 +0200

Deep understanding of pointers

Deep understanding of pointers preface First, let's understand the concept of the following pointers: A pointer is a variable used to store an address, which identifies a piece of memory space.The size of the pointer is fixed at 4 or 8 bytes (32 or 64 bits).Pointers are typed, which determines the step size of pointer operation and t ...

Added by MrBillybob on Tue, 18 Jan 2022 08:36:53 +0200

c language address book Advanced Edition

1. Personal information can be stored in the address book Such as: name, gender, telephone number, address, etc. 2. Modify the information of the designated person; 3. Delete the information of the designated person; 4. Find the information of the designated person; 5. Add information; What is advanced edition The so-called advanced addr ...

Added by BIGjuevos on Tue, 18 Jan 2022 08:19:13 +0200

[data structure] storage structure and basic operation of stack (sequential stack, double ended stack, chain stack) (C language)

1. Basic concept of stack Stack is a restrictive linear table, which limits the insertion and deletion of linear tables to only one end of the table. Generally, the end of the table that allows insertion and deletion is called the Top of the stack. Therefore, the current position of the Top of the stack changes dynamically, which is indica ...

Added by Cosizzle on Mon, 17 Jan 2022 23:57:14 +0200

Introduction to C language (continuously updated)

Introduction to C language: Born in Bell Laboratories from 1971 to 1973, by researcher Dennis Rich, Ken Created by Thompson, it is a special language for writing operating system. Because it is very fast, it is also commonly used to write the core code, underlying data structure, algorithm, etc. Because it is the first high-level programming l ...

Added by Admin32 on Mon, 17 Jan 2022 23:43:48 +0200

Exercise 5-4 using functions to sum primes

This problem requires the realization of a simple function to judge prime numbers and a function to calculate the sum of prime numbers in a given interval by using this function. A prime number is a positive integer that can only be divided by 1 and itself. Note: 1 is not prime, 2 is prime. Function interface definition: int prime( int p ); ...

Added by Mr_Pancakes on Mon, 17 Jan 2022 23:34:32 +0200

[elementary c language] branch and loop statements

I preface If you and I are also a beginner of c language, this article will take you to a detailed and in-depth understanding of branch and loop statements. Don't say much, now! Start. 1. What is a statement? c language can be divided into the following five categories: 1. Expression statement 2. Function call statement 3. Co ...

Added by hansford on Mon, 17 Jan 2022 17:16:06 +0200