C & C++ : comparing strlen(--) with string :: length

Objectives :

  • File name: compare_string_C_Cplus1.cpp
    sending two dimensional array as a parameter to a function.
  • Comparing C and C++ compiling style.
  • Comparing string::length class member (of C++) with  strlen(--) function of C/cstring(string.h) library
  • Code : compare_string_C_Cplus1.txt

Step: 1 Create a source file.

Step: 2 Edit and save Source file

Step: 3 Runtime Views:

Step: 4 Brief Discussion: We are comparing a function with a member.function(), although the return type of the functions was integer type , but approaches were distinctively different.