My code:
#include "pch.h"
#include <iostream>
using namespace std;
int main()
{
char** pptr = new char*[5];
for (int i = 0; i < 5; i++)
pptr[i] = new char[5];
}
What I want to happen is that pptr now points to the beginning of an array of 5 pointers that each point to the beginning of an array of 5 characters.
I put a breakpoint at the end of the main function and added pptr to watch, and it only stores one pointer. Why does this happen and how do I do it correctly?

pptrto point to the beginning of an array of pointers... the beginning of an array is indeed one pointer - the first one in the array. The other pointers come later in the same array.