Kam can occupy different syntactic case positions while remaining indeclinable.

Al-Kināyāt — Kam, its Tamyīz and Syntactic Positions