explain the working of this code.. explain each line of this code #include  using namespace std; int main(){ string str = "An elephant."; int n = str.length(); char *charArray[n]; for(int i=0; i


explain the working of this code.. explain each line of this code


#include 

using namespace std;

int main(){

    string str = "An elephant.";

    int n = str.length();

    char *charArray[n];

    for(int i=0; i<>

        charArray[i] = &str[i];

    }

    cout<><><>

    cout<><><>

    cout<><>

    for(int i=0; i<>

        cout<>

    }

    return 0;

}


Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here