Hello there everyone,
While I was implementing set I found a quite weird output, as sets store data in sorted order, I am passing greater sort. I inserted a few data and I got an output which was unexpected I am attaching that here
I have two question
- When my set size is 4 why fifth number is being printed “-3” in my case
- Do sets store all data in same address??? as the address of all data is same
I will be highly thankful if you can help me in solving my doubts!