C Language Common Vocabulary summary

Source: Internet
Author: User
Tags control characters

1. Continue jump out of the loop and proceed to the next loop note continue can only be used for a for loop and while loop and cannot be selected for a switch unless the switch statement is nested inside a for or while loop

2. Return to the Call function returns the value or the terminating function when the function executes the return function ends, all the remaining statements in this function are not executed if the return value is a null End function, unlike the caller returns any value, you can use to terminate the function.

3. int integer 4 bytes

4. Short int shorter integer 2 bytes

5. Long int length integer 8 bytes

6. Float single-precision floating-point number 4 bytes

7. Double dual-precision floating-point number 8 bytes

8. Char character 1 bytes

9. printf () output

scanf () Get user input

GetChar () Gets the characters in the user input

.%d Shaping control characters

.%ld Long Shaping controls

%f floating-point control characters

%LF double-precision floating-point control character

.%c Character Control

.%x Hex Control character

% #X hex with 0x makes it easier to discern output as 16-input control character

A? B:C three-mesh operator if a expression is set to execute B otherwise execute C

if (an expression) if

for (assignment; judging; self-increment) loops

. while (judging) loop

Do...while () First to perform a cycle judgment if true, loop repeatedly

The corresponding case value is appended to the. switch (parameter) and the default is executed when the passed-in parameter is followed by the value of the event, and if more than one is different, the default

i++ self-increment 1 but the corresponding value is I

++i self-increment 1 corresponds to a value of i+1

A[2] Array

a[2]={1,2} array Full initialization

A[2]={1} array not fully initialized

A[2]; Array not initialized

A[2]={0} array zeroing

A[2][2] two-dimensional arrays

The void definition represents no return value in front of the function name, which is defined in parentheses after the function name to represent the parameterless parameter

Break ends the current parent loop or switch

Continue end of the cycle into the next cycle

C Language Common Vocabulary summary

Related Article

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.