Dead code is code in the source code of a program which is executed but whose result is never used or a code that can never be reached or used.