#include <iostream>
#include <cstring>
using namespace std;
int main(){
char first_name[20] {};
cout << "Enter Your First Name : ";
cin >> first_name;
cout << "Hi "<< &first_name <<", Welcome to C++ Programming.";
return 0;
}
if I write &first_name
it is giving the memory location of first element correctly, but unable to find location of other elements (eg. &first_name[0]
etc.)