Prefix versus Postfix in C++

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.

Open PDF

Document Details

Document Type
Technical Report
Publication Date
Oct 01, 2015
Accession Number
ADA622095

Entities

People

  • Tom Nealis

Organizations

  • United States Army Armament Research, Development and Engineering Center

Tags

Communities of Interest

  • Weapons Technologies

DTIC Thesaurus Topics

  • Abstracts
  • Compilers
  • Control Systems
  • Department Of Defense
  • Engineering
  • Fire Control Systems
  • Governments
  • Information Operations
  • New Jersey
  • Notation
  • Software Development
  • Standards
  • Technical Information Centers

Readers

  • Brain and Cognitive Science; Experimental Psychology; Cognitive Neuroscience
  • Computer Programming and Software Development.
  • Educational Psychology