What is a set?

  • A set represents a group of elements arranged just like an array.
  • The set will grow dynamically when the elements are stored into it.
  • A set will not allow duplicate elements.
  • If we try to pass same element that is already available in the set, then it is not stored into it.
  • Set will not maintain the same order of elements as in which they were entered.

No comments:

Post a Comment