Respuesta :
Answer:
There are 212, 133, 167, 002, 880, different variables.
Explanation:
Beacuse there are 26 possible uppercase letters, 26 lowercases letters, 10 digits and 1 underscore, which are 63 possible chacracters in total.
Strings of length 8
1º character: 53 ways( uppercase or lowercase letter or an underscore)
2º character to 8º character: we have 63 ways
By using the product rule: 53.63.63.63.63.63. 63. 63 = 53. 63⁷
In the same way we have:
strings of length 7: 53. 63⁶
strings of length 6: 53.63⁵
strings of length 5: 53. 63⁴
strings of length 4: 53.63³
strings of length 3: 53. 63²
strings of length 2: 53.63
strings of length 1: 53
Strings fo length eight or less calculate by using the sum rule:
53₊ 53.63₊ 53.63² ₊ 53.63³ ₊ 53.63⁴ ₊ 53.63⁵ ₊ 53.63⁶ ₊ 53.63⁷ = 212,133,167,002,880
There are 212133167002880 possible variable names in C programming language
From the question, we have the following parameters:
- First letter must be a letter or an underscore
- The variable name can contain uppercase letters, lowercase letters, digits, or underscores.
This means that:
The first letter can be any of 53 characters i.e. 26 uppercase+ 26 lowercase + 1 underscore
Each of the other 7 characters can be any of 63 characters i.e. 26 uppercase+ 26 lowercase + 1 underscore + 10 digits
So, the number of variables is:
[tex]n = 53 * 63^7[/tex]
Evaluate the exponent
n = 212133167002880
Hence, there are 212133167002880 possible variable names in C programming language
Read more about permutation and combination at:
https://brainly.com/question/4658834