- 0of 0 votes
Write a program to read improperly indented C code from a file and add tabs and new lines as per convention in a new file. (Eg. After a control statement is encountered, print the opening brace on a new line. Then, on the line after that, increase indentation and begin writing code. Reduce indentation when a closing brace is encountered by the file pointer).