Can we use ternary operator in-order to design a Priority Encoder?
{Ans} Yes. As you have already worked out its working as a case statement. And case give priority to its first switch statement more than second switch and so on - Thus works as a priority encoder.
I found if I use nested ternary operator it works like a case statement.
{Ans} True.
Also I want to understand how it justifies that Ternary operator is right to left associativity?
{Ans} So that it can implement a code exactly same as a case statement-