C++/question about c
sir compiler compile the whole program .
compiler is also a set of program than who checks the error of compliler ?????
it means who checks for error of compiler????
The current practice is that the compiler writers (and users over a period of time) run these tests. Every respectable mainstream compiler is tested against a suite of test cases. Writing a good test suite is expensive; some test suites are commercially available - for example http://www.plumhall.com/suites.html
But no matter how much testing is done, the compiler is a complex program and there would still be undetected errors. The more widely the compiler is used, the more likely that errors would be unearthed and fixed over a period of time. For example: http://gcc.gnu.org/bugzilla/buglist.cgi?query_format=advanced&short_desc_type=al