Accession Number:

ADA622095

Title:

Prefix versus Postfix in C++

Descriptive Note:

Final rept.

Corporate Author:

ARMY ARMAMENT RESEARCH DEVELOPMENT AND ENGINEERING CENTER PICATINNY ARSENAL NJ WEAPONS AND SOFTWARE ENGINEERING CENTER

Personal Author(s):

Report Date:

2015-10-01

Pagination or Media Count:

12.0

Abstract:

Many coders today do not take the time to consider the implications of the code they write. Not all code is created equal, and something as seemingly harmless as incrementing or decrementing via prefix instead of a postfix notation can have a considerable effect on performance. Modern day compilers can and do optimize certain common instances of code involving this notation, but it should not be relied upon in a well-developed and maintained code base.

Subject Categories:

  • Computer Programming and Software

Distribution Statement:

APPROVED FOR PUBLIC RELEASE