Dark Horse programmer------<a href= "http://www.itheima.com" target= "blank" >java training, Android training, iOS training,. NET training </a>, look forward to communicating with you! -------
1.1 Expressions and statements in C language
expressions, which are called constants, variables, and function calls, are referred to as expression, and the common form is an assignment statement, a function call statement, and an empty statement.
L Assignment Statement: The value to the right is calculated first and then assigned to the left variable
Note: The variable must be defined before use; the value of the variable is not determined, the process of assigning the variable is the overwrite process, and the new value is used to replace the old one, and the assignment operation is right-to-left and right-left
/*#include <stdio.h>int main () {char ch; ch = ' A '; printf ("%c%d\n", ch,ch); return 0;}*///character types for integer operations#include<stdio.h>intMain () {Charch; CH='A'; intsum; Sum=9+ch; printf ("%d\n", sum); return
Dark Horse Programmer------C language Learning notes---C language expressions and statements