Is it possible to make an integer array bigger once the program begins to execute? Explain.

What will be an ideal response?


No, it is not possible. Once an array is created, it is fixed at that size. If you need for a list of values to be able to “grow” as the program executes, use a vector instead.

Computer Science & Information Technology

You might also like to view...

The _________________________ is a TCP/IP service that converts a computer or domain name to an IP address or that converts an IP address to a computer or domain name.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which of the following is not true about freezing panes?

A) The locked areas become separate panes. B) It can involve one or more rows. C) It can involve one or more columns. D) You can skip rows or columns when selecting what to freeze.

Computer Science & Information Technology

The following time value is in UTC format and represents ____________________, at 9:30:45 p.m. Pacific Standard Time:2002-07-27T21:30:45Z

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What will the following program print on screen?int tenure = -5;if (tenure + 5)   printf("Congratulations!");else   printf("Sorry");

A. Congratulations! B. Sorry C. Runtime error. D. Nothing; the program will not compile.

Computer Science & Information Technology