Measuring the Programming Complexity of C and C++ using Halstead Metrics

Comparison of C and C++

  • Muhammad Shumail Naveed Department of Computer Science, University of Balochistan
Keywords: Halstead Metrics; Computer Algorithms; Programming languages; C, C ;

Abstract

Computer algorithm is the core of computer science and important prerequisite of computer science professionals. However, its hard and abstract nature makes it difficult to understand. Pedagogical issues in learning of algorithms are generally resolved through elaborating the algorithms with their implementation in some programming language. As there are many programming languages, the selection of appropriate programming language for effective implementation of algorithms remains a challenging issue. In this article, common algorithms of data structures are measured by analyzing their implementation in C and C++ through Halstead complexity metrics. The statistical tests identified that as compare to C++ the less effort, time and bugs are involved in C for the implementation of algorithms, whereas C++ involves less difficulty during the implementation of algorithms. The work stated in this article provide a novel aspect to relate and evaluate other programming languages.

Published
2022-04-14
How to Cite
naveed, M. S. (2022). Measuring the Programming Complexity of C and C++ using Halstead Metrics: Comparison of C and C++. University of Sindh Journal of Information and Communication Technology , 5(4), 158-165. Retrieved from https://sujo.usindh.edu.pk/index.php/USJICT/article/view/4073

Most read articles by the same author(s)

Obs.: This plugin requires at least one statistics/report plugin to be enabled. If your statistics plugins provide more than one metric then please also select a main metric on the admin's site settings page and/or on the journal manager's settings pages.