In a p-n junction, the current flows due to: | ClassNotes