0

Does array of 100 characters mean we can store 100 characters in it

13th Jun 2019, 7:05 AM
Akash C R
Akash C R - avatar
5 Answers
+ 5
Of course , as much as Java and C++ are concerned....
13th Jun 2019, 7:06 AM
Shadow Ninja[#Inactive]
Shadow Ninja[#Inactive] - avatar
+ 4
The code will show something like OutOfBoundsException in Java
13th Jun 2019, 7:16 AM
Shadow Ninja[#Inactive]
Shadow Ninja[#Inactive] - avatar
+ 1
What happens if we give input of more than 100 characters
13th Jun 2019, 7:11 AM
Akash C R
Akash C R - avatar
0
We can store more characters in an array than it's size. In C, if you give an input of more than 100 characters, only the first 100 will be meaningful data. All the other data will be garbage value.
13th Jun 2019, 7:32 AM
Fumikage Tokoyami
Fumikage Tokoyami - avatar
0
Ofcourse
13th Jun 2019, 8:33 AM
Amora
Amora - avatar