This question was asked in aptitude test.
int i, n = 20;
for (i = 0; i < n; i--)
printf("-");
You have to print '-' 20 times. by adding or removing or
replacing only a single character from the code.
There are 3 possible solutions for the above question. What
are
they ?
Duration: 5 min.