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 are the types of adapter services ?

598


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

617


What are the revision control system options available in tibco designer?

607


What are the output formats for xslt?

641


What is the difference between jms queue receiver and jms queue requestor?

573






Which mechanism can be used to pass data between a process instance and a called sub process other than mapping from/to the callee's input/output ?

604


What are the maximum/minimum of threads available for incoming http ?

597


What are the mandatory configuration parameters for ftp connection & ftp with firewall ?

578


What is the default axis in xpath ?

612


What is a spawn in call process?

599


I am a commerce graduate, with service desk experience of 4 years. Not much technical, which module of Tibco will help me and will that have a demand in market. If yes how long time it will take me to learn.

1880


When is a 'generate error' activity useful?

582


Hi i want to learn TIBCO. I am not good at programming.. Which module should i prefer to learn in tibco. i am having 2 years exp in another sector, now i m planning to change my career path. Please suggest me.

2174


Can there be two error transitions out of an activity ?

755


What is the purpose of the inspector activity ?

614