Why Char array is preferred over String for storing password?  | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

 Why Char array is preferred over String for storing password? 

8th Jan 2018, 4:11 PM
raveena kagne
raveena kagne - avatar
3 Answers
+ 1
Char stores one symbol instead of full string, therefore there is no need to check full password, just incorrect symbol. At least that's what I think. It may also be more secure than String.
10th Jan 2018, 5:59 PM
Yuriy
- 2
hii
10th Jan 2018, 5:45 AM
ayush