#include <iostream>

using namespace std;

/* What are the characteristics of dynamic memory allocation that make it useful? */

int main(){

    int size;

    cout << "Enter a size: " << endl;
    cin >> size;

    char *s = new char[size]; 

    for(int i = 0; i < size-1; i++)
	s[i] = 65 + i;

    s[size - 1] = '\0';

    cout << s;
    
    cout << endl;

    delete [] s; //delete anything that was allocated with "new"; why?

    return 0;
}

