+ 2

What is the difference between string and an array ?

String and array both looks same

22nd Jan 2018, 4:06 AM
VISHAL BISWAS
VISHAL BISWAS - avatar
3 Answers
0
I know only java and c as per my academics. In c, a character array is called a string. There is nothing separately called a string. In java, strings exists though. It has a separate entity. You can use character arrays but strings are more easily handled and manipulated
22nd Jan 2018, 5:27 PM
Rudrapratap Paul
Rudrapratap Paul - avatar