Interview Question
Country: United States
Assuming the code is in C, the following sequence follows:
1. add semicolon after int n = 20
2. add - to the initialization of n
3. change < to > in the loop
4. change n to i in the (n-- becomes i--)
5. change the first ' to " inside the loop
6. change the second ' to " inside the loop
7. add f after the print token (becomes printf)
Have to do the following modifications:-
- Arshad Hussain April 09, 20141. Semicolon Addition at the end of int n=20;
2. 'f' addition at the print as printf('*');
3. Replacement of '(single quote) to " (Double quote) as printf("*");