What happens when the following code segment is Validated? int x = 20; Int main() { int x ; x = 10 ; return x ; }

  1. Complies Successfully

  2. Error Due to Duplicate Variables.

  3. RunTime Error

  4. Executes Successfully


Correct Option: A

Find more quizzes: