So this is a question on nested ternary operator, grouping method is used to solve:
First check the number of question mark is equal to the number of colons in the given statement, the statement is valid only if they are equal, otherwise the statement is invalid.Here in the given statement “printf("2>5") > printf("2<5") ? printf("2")!=printf("20")?printf("GA"):printf("2022"):10?2!=2>5?!2?40:!2!=3?50:60:70:80” there are 6 each, hence the statement is a valid one.
Step 1: Start from left of the statement, match the first colon symbol you come across with its nearest question mark to its left as shown in the reference below: 

and do the same for the rest of the colon symbols in the statement.

Step 2: Consider the first sub-statement “printf("2>5") > printf("2<5")”, divide the statement according the matched colon to the question mark present in the considered sub-statement.

printf function returns the number of characters printed, so here both the printf will return 3 as there are 3 characters and also “2>52<5” gets printed.
similarly the next part of the statement is considered and solved as shown below:



So, a is evaluated to 50.
Option A is the right answer.