A flip-flop is a bistable sequential logic circuit in digital electronics that can store 1 bit of data and changes state with a clock signal. Thanks to its ability to maintain its last state ($0$ or $1$) even when the input signal is removed, it acts as a memory element. These circuits, which include types such as SR, D, JK, and T, form the fundamental building blocks of microprocessors, counters, and memory units.