vault backup: 2024-09-11 12:46:34
This commit is contained in:
parent
b33cd35a44
commit
b460a6eabf
@ -81,4 +81,8 @@ It will continue to read until it reaches a nondigit (whitespace is not skipped
|
||||
|
||||
When asked to read a float, `scanf` searches for one of:
|
||||
- A plus sign or minus sign
|
||||
- A series of digits (possibly containing a decimal point), followed by an exponent (optional). An exponent consists of the letter `e` or `E`
|
||||
- A series of digits (possibly containing a decimal point), followed by an exponent (optional). An exponent consists of the letter `e` or `E`, an optional sign, and one or more digits.
|
||||
`%e`, `%f`, and `%g` all follow the same rules for recognizing floating point numbers.
|
||||
|
||||
If an ordinary character is included in the pattern matching string, it will be matched then discarded before proceeding to the next character.
|
||||
|
||||
|
@ -18,3 +18,13 @@ printf("%-6.0f", x);
|
||||
```
|
||||
|
||||
# 3.
|
||||
a. Equivalent
|
||||
b. Equivalent
|
||||
c. Equivalent
|
||||
d. Equivalent
|
||||
|
||||
# 4.
|
||||
`i`: `10`
|
||||
`x`: `5.0`
|
||||
`j`: `6`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user