This does placement new and initializes all PODs inside the class (the parenthesis after A at the end):
A* pa = new(malloc(sizeof(A)), 10) A();