answered question
Encoder is a device which has 2 to the power 'n' inputs and 'n' no. Of output.It means if there are 8 inputs lines in encoder then there will be 3 outputs lines.but in decoder there is reverse process ,i.e. There are 'n' no. Of inputs lines and 2 to the power 'n' outputs lines .