Port C of 8255 can function independently as
(a) input port
(b) output port
(c) either input or output ports
(d) both input and output ports
This question was posed to me during an online interview.
This is a very interesting question from PIO 8255 (Programmable Input topic in chapter Basic Peripherals and their Interfacing with 8086/88 of Microprocessor