Dark Horse programmer------C language Learning notes---C language expressions and statements

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.