what is global variables?

Answer Posted / keshini vyas

global variables are created by defining them outside of all the functions including the main in the program. The common practice is that all global variables are defined at the begining of the program code before any function. global variables can be accessed from any function including main function and other user defined functions.

example
int x,y; /* Global Variable*/
main()
{
int a,b;/*local variable*/
statement 1;
statement 2;
.
.
.
statement n;
}

Is This Answer Correct ?    11 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is tibco?

833


What is business key?

705


What is vcrepo.dat?

785


How to control the sequence of execution of process instances created by a process starter ?

805


What are the different modes of service invocation?

797


What are the cases where business process cant proceed correctly subsequent to restart from a checkpoint ?

791


Which one to prefer, Soap over JMS or Soap over HTTP in web service. Explain their pros and cons.

1117


If you have installed a particular version of tibco software e.g. Tibco bw x.y.z, what are x, y and z number stands for?

806


If Sender has sent the message on a queue.If the JMS Primary Server went down and secondary Server get the message which is lost. Where is the message now?

1318


What are the different modes of service invocation in tibco?

877


How to use legacy .dat file format with latest designer ?

805


Where does the tibco admin maintains the version history of the application?

773


Can there be two error transitions out of an activity ?

965


What are the possible error output's of read file activity?

795


What is the purpose of the inspector activity ?

782