Interview Question

Anonymous Interview

Technical question. Count words in file. You have to ignore

  however many white spaces and special characters
Answer

Interview Answer

1 Answer

0

Loop through the characters in file and set a flag everytime space is encountered. Increment count by one and also check that a character before was not a blank space

Interview Candidate on Apr 1, 2010

Add Answers or Comments

To comment on this question, Sign In with Facebook or Sign Up