C language 01

Source: Internet
Author: User

Before the all in the Evernote record

Continue ends the loop body and enters the next cycle.
Break directly ends the entire while loop

Parameter: Parameters in the function name after a timer function
Arguments: The specific data passed in when the function is called
The base data type is a formal parameter, is purely a value pass, modifies the value of a function's internal parameter without affecting the argument value

Role of Rerurn: 1, Exit function

2. Returns the specific reference to the function caller.

The function of void: No return value, can also return;

void login (QQ, password)

{

If QQ has no value

1, if (QQ no value) return;

If the password does not have a value

2, if (password no value) return;

3, QQ and password to send to the server.

}

1, the function name does not declare the data type, the system automatically defaults to the int type. such as test () = int Test ()

2. By default, the C language does not allow two functions of the same name to appear.

3. Functions cannot be nested defined.

4. Functions cannot be defined repeatedly, but can be declared repeatedly.

void A ();//Declaration

Vodi A ();

int main ()

{

}

void A ()

{

}//definition

5, there is a function declaration, there is no definition, the function can be compiled, can not be linked. PS: The compiler only detects syntax when compiling, and does not detect whether a function is defined. The definition is detected when the compiler links.

C language 01

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.