1. Difference Between break and continue:
Break: jumps out of the loop and runs down.
Continue: Terminate this loop and perform the next loop.
For example:
For (INT I = 0; I <7; I ++)
{
If (I = 0)
{
Break;
// Continue;
}
Printf ("Haha ");
}
Printf ("Haha ");
When I = 0, break prints out Haha, and continue does not print, but enters the next loop.
2. String functions in C:
Header file: <stdio. h>
Output Function: int puts (Const char *Str);
A positive value is returned successfully, and an error EOF is returned.
Input Function: char * gets (char *Buffer);
The input value is returned successfully. The NULL pointer returned by the error does not use "space" as the input end identifier, but uses "enter" as the end identifier.
Header file: <string. h>
Connection function: char * strcat (char *Strdestination, Const char *Strsource);
Strdestination is returned successfully. The returned error is null.
Copy function: char * strcpy (char *Strdestination, Const char *Strsource );
Comparison function: int strcmp (const char *String1, Const char *String2);
The return value is <0, 0,> 0 (string1 to string2)
String Length: size_t strlen (const char *Str);
Returns the string length, excluding the terminator '\ 0'