Question: Which code snippet below is the correct syntax to change the length of a char array of size 10 that has already been declared and
Which code snippet below is the correct syntax to change the length of a char array of size 10 that has already been declared and used:
words.length = 20;
None of these options here
char [ } words = words [ words.length + 10];
char [ } words = words [ length + 10];
Step by Step Solution
3.53 Rating (150 Votes )
There are 3 Steps involved in it
Heres an example of how you might resize an array in C using stdvector include includ... View full answer
Get step-by-step solutions from verified subject matter experts
