+ 1

What does set<int>s[4] means?

Does it create 4 sets inside a set? Similar: vector<int>v[4]

29th Jul 2020, 4:23 AM
Amit Dubey
Amit Dubey - avatar
3 Answers
+ 5
You are creating an C style array of std::set or std::vector object Eg:- set<int> s[2] Is similar to set<int> s0,s1;
29th Jul 2020, 4:32 AM
Arsenic
Arsenic - avatar
+ 2
Got it! Thank you!
29th Jul 2020, 4:34 AM
Amit Dubey
Amit Dubey - avatar