Measuring the Programming Complexity of C and C++ using Halstead Metrics
Comparison of C and C++
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.
Copyright (c) 2021 University of Sindh Journal of Information and Communication Technology
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
University of Sindh Journal of Information and Communication Technology (USJICT) follows an Open Access Policy under Attribution-NonCommercial CC-BY-NC license. Researchers can copy and redistribute the material in any medium or format, for any purpose. Authors can self-archive publisher's version of the accepted article in digital repositories and archives.
Upon acceptance, the author must transfer the copyright of this manuscript to the Journal for publication on paper, on data storage media and online with distribution rights to USJICT, University of sindh, Jamshoro, Pakistan. Kindly download the copyright for below and attach as a supplimentry file during article submission