The latch and flip flops are bistable devices, used to store o and 1. The output of the latch depends on the input, whereas the output of the flip-flop depends on the clock signal. The latch is level triggered device but the flip-flop is an edge-triggered device.