How many substrings of non-zero length can be formed from a character string…

How many substrings of non-zero length can be formed from a character string of length n?

  1. A.

    n

  2. B.

    n^2

  3. C.

    2^n

  4. D.

    n(n + 1)/2

Attempted by 796 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…