Why can't we give input directly to pointer array? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why can't we give input directly to pointer array?

I have created pointer array. In which, I can store data(string in mentioned program) by using 1.assignment operator or 2. by creating new data variable -> taking input by using cin -> assigning new data variable to old one. X But why I can't use cin directly for pointer array to store data. as : cin >> a; //assume a as pointer array. https://code.sololearn.com/cMPN1Zw27Ego/?ref=app

22nd Feb 2020, 12:04 PM
Aditya Sutar
Aditya Sutar - avatar
0 Answers