Computer Science, asked by putririska2979, 1 year ago

Which of the strings cannot be generated using the expression (a*b)*a* ? (a) aaaaaa (b) abaaa (c) abab (d)aaaaaba

Answers

Answered by Bhavani33
0

Answer is

(a) aaaaaa

this string cannot be generated using the expression (a*b)*a*

Answered by syed2020ashaels
0

Answer:

The string aaaaaa cant be generated using the above expression

Explanation:

  • As we can see that the expression given to us is
    (a*b)*a
  • 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