The unused inputs are connected to ground,and it works OK on the breadboard.I cannot get it to work on my Logic Lab simulator.I thought I may be performing an illegal operation.I havn't seen this application used anywhere.
In real hardware, I suspect that the output will come up either high or low when power is switched on, depending on the internal circuitry. I'm not sure what simulator you are using, but unused inputs of behavioral gates in LTspice are automatically inactive, so grounding them wouldn't help..
Please define the phrase "doesn't work." Is the simulator output always low? Does it follow the input? Is the o/p an analog representation of a Barry Manilow tune?
It works in my simulator, even using CMOS logic without having all of the unused inputs grounded. Perhaps you've found a bug in your simulator software.