Joachim Gauck, a former human rights campaigner in Communist East Germany, was elected Germany's 11th president since the end of World War II, in a special ballot on Sunday, dpa reported.