Type casting is generally done like
float x = 1.3;
cout<<int(x);
but in the video it was done like cout<<(void *)&ch;
is this a valid syntax and how?
Type casting of char pointer
Basically, in case of characters, we cannot print the address even though we are using
cout<<&ch;
This will actually give ch, instead of the address to which it is pointing,
so to determine the address of ch, we will use the concept of explicit addressing, wherein , we will use, cout<<(void *)&ch, so that it will give us the result to which ch is pointing to