Which of the strings cannot be generated using the expression (a*b)*a* ? (a) aaaaaa (b) abaaa (c) abab (d)aaaaaba
Answers
Answered by
0
Answer is
(a) aaaaaa
this string cannot be generated using the expression (a*b)*a*
Answered by
0
Answer:
The string aaaaaa cant be generated using the above expression
Explanation:
- As we can see that the expression given to us is
- Here we can clearly see that the output will be ab , a times as ab firstly makes the product then that product is repeated a times.
- An array of characters is how strings are defined. A string is different from a character array in that it has a special character at the end.
- A one-dimensional array can be declared just as easily as a string. The fundamental syntax for declaring a string is shown below.
char ch[];
#SPJ3
Similar questions
Math,
6 months ago
Social Sciences,
6 months ago
Art,
1 year ago
Political Science,
1 year ago
Math,
1 year ago
English,
1 year ago