Breathing and swallowing are regulated by the medulla, the most primitive part of the brain. A fetus can involuntarily yawn, swallow, and suck by the tenth week of gestation.
The cerebral cortex however, takes much longer to develop, beginning late in the second trimester and continuing until...