4 boys and 4 gIrls can be arranged In a row in the following order of arrangements in which two boys and two girls do not appear together.
Hence, the total number of ways of arranging 4 boys and 4 girls in a row, so that two boys and two girls do not appear together = 576 + 576 = 1152