Name two reasons why programmers should be careful when using global variables.

What will be an ideal response?


There are two reasons programmers should be careful when using global variables. First, all functions within the file are able to change the value of the global variable; and second, there is a chance the global variable might conflict with a global variable located in one of the program include files.

Computer Science & Information Technology

You might also like to view...

Which of the following firewall setups is a combination of a bastion host and a screening router?

A) Network host-based B) Dual-homed host C) Screened host D) Router-based

Computer Science & Information Technology

Serial interfaces on a router are typically used to

a. connect to console ports. b. connect to communication carriers. c. connect to auxiliary ports. d. interconnect routers.

Computer Science & Information Technology

The file extension for an ASPX code-behind file written in C# is _________.

a) .asp b) .aspx c) .aspx.cs d) .code

Computer Science & Information Technology

Usually, as the length of a cryptovariable increases, the number of random guesses that have to be made in order to break the code is reduced.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology