What does ac in AC-130 mean?

The A means attack or air to ground (A-10, A-6, etc) and the C means cargo (C-5, C-17). Since the AC-130 is a modified C-130, it carries both designators.