What will be printed out as a result of the program execution?
#include <iostream>
#include <set>
#include <string>

int main()
{
	char a[] = "CADEBA";
	std::set<char> s(a, a + sizeof(a) - 1);
	std::cout<<std::string(s.begin(),s.end())<<std::endl;
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
C++ quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes