Hey everyone
Recently, an interviewer asked this C# question to my friend during a technical interview.
He solved it โ but I thought itโs a great one to share with all of you!
I am sharing the coding snippet image. Can you figure it out too?
Looks simple, right?
But thereโs a small mistake here that causes a runtime error.
Can you find whatโs wrong in this code?
How would you fix it so that it runs without errors and prints all the characters correctly?
Drop your answers in the comments
Letโs see how many of you can spot it!
Top comments (0)