Operator + common keyword
1, Operator
1. Unary operator (only one operand)
! Logical reverse operation
#include <stdio.h>
int main()
{
//In C language, 0 means false and non-0 means true
int flag = 0;
if (!flag)
{
printf("hehe\n");
}
return 0;
}
-Negative + positive
#include <stdio.h>
int main()
{
int a = 10;
int b = -a;
printf("%d\n", b);
...
Added by stubarny on Fri, 07 Jan 2022 22:39:12 +0200
Educoder sequential structure programming
Off 1: addition operation
Task descriptionRelevant knowledge (omitted)Programming requirementsTest description
Task description
This off task: write an addition program, input integers a and B, and output their sum.
Relevant knowledge (omitted)
Programming requirements
Please supplement the code between begin end, write an addition progra ...
Added by itguysam on Fri, 07 Jan 2022 09:53:51 +0200
C language learning notes - operators
3.1 arithmetic operators
operatoroperationexampleresult+Plus sign+77-minus signa=7;-a-7+plus9+716-reduce9-72*ride9*763/except7/71%Surplus9%71 ++ ++ Auto increment (before): value after operation Auto increment (later): take value first and then operate a=7;b=++a a=7;b=a++ a=8;b=8 a=8;b=7 -- -- Self subtraction (before): calculate first ...
Added by simonj on Fri, 07 Jan 2022 08:28:13 +0200
The usage of "##" in C language.
From: Micro reading https://www.weidianyuedu.com/content/2117161192623.html
There are many popular programming languages on the market, such as Python , JAVA, Go, etc. you may think C language is very old and backward. If you have this idea, you may just be a beginner. Before I shared with you the definition and usage of several special stan ...
Added by stupid girl! on Thu, 06 Jan 2022 16:59:23 +0200
After mieba snapped his fingers, I learned the "branch and loop statements" of C language
🌟 preface
Hello, I'm Edison 😎
The last article said that we should sort out the whole series of C language;
So I'm not idle for three days on New Year's day. No, today we start our second "branch statements and circular statements";
Let's get it!
The link to the previous article is here: Roommates only need a king's time to ...
Added by signs on Thu, 06 Jan 2022 15:52:18 +0200
Sudden whim to solve the permutation and combination problem in high school with C
Title: there are 1, 2, 3 and 4 numbers. How many different three digits can be formed without repeated numbers? How much is it?
A very simple high school topic is also well realized by program. Don't say much, just go to the code.
#include<stdio.h>
int main()
{
int i,j,k;
printf("\n");
for(i=1;i<5;i++) { // The followin ...
Added by johncox on Thu, 06 Jan 2022 15:12:01 +0200
C language implementation of quick sort and optimization and analysis of quick sort
C language to realize quick sorting and its system optimization and analysis
catalogue
I Implementation of quick sort
1. Implementation ideas
2.QSort implementation
3. Implementation of the function Partition()
4. Complete code
II System optimization of quick sort
1. Optimize the selection of keyword pivotkey
2. Optimize unnecessary ...
Added by BobcatM on Thu, 06 Jan 2022 07:03:58 +0200
C language learning notes - variables
1. Variables
1.1 integer type
1.1.1 introduction
The integer type in C language is used to store integers. For example, int a =10
1.1.2 classification of integer types
Type namesizeValue rangechar1byte-2 ^ 7 to 2 ^ 7-1short2byte-2 ^ 15 to 2 ^ 15-1int4byte-2 ^ 31 to 2 ^ 31-1long4byte-2 ^ 31 to 2 ^ 31-1
The shaping types in C language ar ...
Added by rushdot on Thu, 06 Jan 2022 04:16:55 +0200
Stm32 hardfault and search method of memory overflow
STM32 memory structure
1. Key points 1.1 two storage types: RAM and Flash Ram is readable and writable. On the memory structure of STM32, RAM address segment distribution [0x2000_0000, 0x2000_0000 + RAM size) Flash is read-only. On the memory structure of STM32, the flash address field [0x0800_0000, 0x2000_0000) 1.2 six types of stored d ...
Added by weezil on Thu, 06 Jan 2022 03:45:13 +0200
[Blue Bridge Cup java_group C · volume from scratch] section 6. Common mathematical formulas of Blue Bridge Cup
catalogue
1. Euclidean theorem
2. Maximum common divisor
3. Least common multiple
4. Helen formula (find triangle area)
5. Sorting formula
1. Euclidean theorem
package Action;
public class demo {
/*
* The idea of finding the least common multiple of the greatest common divisor: according to Euclidean theorem gcd(a,b)=gcd(b,a%b);
...
Added by outpost on Thu, 06 Jan 2022 02:59:21 +0200