Most people want to develop a six pack and so they do exercises like sit-ups or crunches, but I suggest to first learn how your core is constructed before investing too much time on exercises. After all, a six pack is, physically, a very attractive aspect.
I received all my information from Build by Science by Mike Robertson, C.S.C.S. I shortened and simplified it.
Muscular Anatomy
There are three muscle groups that participate in core exercises.
Deep Layer - This, also, is split up in three groups
1.1. Diaphragm. It start at the front of the rib cage goes around the back to the lower back. It is necessary for respiration.
1.2. Pelvic floor. It is located at you pelvis. It helps with pressurizing and stabilizing your spine.
1.3. Transverse Abdominus. It starts at the middle of your six-pack(or soon to be) and runs around to you lower back. This stabilizes you pelvis.
Intermediate layer - He basically only consist of one muscle group
2.1. Internal oblique. This muscle runs from middle of six pack to your hip bone. It helps with torso rotation (or anti-rotation) and respiration.
Superficial layer - The third and last muscle group consists of External oblique and Rectus Abdominus.
3.1 External oblique. It runs from your rib cage to your hip bone. This is a very important muscle and helps a ton, mostly for stability through the core and midsection.
3.2 Rectus Abdominus. It starts at the lower part of the pelvis and end in the fifth, sixth or seventh rib. This is your six-pack itself.
Bones that are part of core movements
Mike Robertson also says that your core can do much more than just flexing. Here are some movement you tend to use unconsciously.
Excises:
Now you know almost everything there is to know about the anatomy of your abs.
Good luck ;)