Arista Networks interview question

find the bug code.. str[0] = "2'; code ... return 0;

Interview Answer

Anonymous

18 Feb 2022

' ' (single quotes) vs " " (double quotes) This was a non obvious thing to see especially in an interview setting. Was one of the last questions I did.