Quick Filter
If you are planning to recruit a programmer for your firm, a quick way to filter out applicants is by asking a few basic questions, and this question falls in such a category of questions.
Q) If I declare a character array char n[12] and code the line, strcpy(n,“radhakrishna”); what’s wrong with it ?
A) character array is always NUL terminated. This means that strcpy writes a NUL at the 13th byte and you have no clue what you have over written on the 13th byte..