Being gay is "God's greatest gift to me," Apple CEO Tim Cook

"I'm very proud of it," the Apple CEO told Christiane Amanpour o Wednesday in an exclusive interview for her program on CNN International and PBS. Being gay is "God's greatest gift to me," he said.

His sexual orientation had been widely rumored beforehand though he had not confirmed it publicly.

"I was public because I started to receive stories from kids who read online that I was gay," he told Amanpour.

He said the emails and letters came from children who said they had been ostracized, bullied or abused because of their sexual orientation.

Cook said he is a private person but ultimately decided that he was being "selfish" by keeping quiet about his identity when he could help people by coming out.

Cook said he was shocked that he was the first out CEO of a Fortune 500 company. He said he is glad other CEOs have come out since, although that wasn't his goal."I needed to do something for them," Cook said. He wanted to demonstrate to gay children that they "can be gay and still go on and do some big jobs in life."

Coming out has also helped Cook as a leader, he said.

"I learned what it was like to be a minority," Cook told CNN. "The feeling of being in a minority gives you a level of empathy for other people who are not in the majority."

Prejudicial comments have also given him a thick skin, Cook said.

"That turns out to be pretty beneficial from this role as well."