If you're building a (normal!) clock, the most significant digit will only ever be blank, 1, or 2 (if you want to support 24 hour format time).
With that limitation, you could drive the LEDs directly since you would need fewer outputs -
12 hour only: 1 line to drive the "1" or leave it blank, plus (3*7) for the other three digits. = 22
24 hour format: 3 lines to drive the upper part of a "1", the lower part of a "1" and the remaining segments required to form a "2", plus (3*7) for the other three digits = 24.
Of course, you probably also want some way to set your clock using push buttons, you might want to add an alarm, etc. So in the long run, you would be better off multiplexing the segments and usng external transistors as the other posters have suggested.
I am new to mbed and electronics, but if I want to make clock using 4 digit 7 segment led, can I do it with mbed? what should i need beside 4 digit 7 segment led? I hope someone will help me.
sorry if my question is too stupid....