answersLogoWhite

0

What does ARGV refer to?

User Avatar

Anonymous

14y ago
Updated: 8/19/2019

ARGV refers to command-line arguments passed to the Perl script at runtime. In otherwords, ARGV is only used when you are using a terminal emulator, like Terminal in Mac OS X, command.exe in Windows/MS-DOS, or one of the many emulators in Linux, such as Sakura.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Give examples for pointers within pointers?

If you mean pointers referring pointers then here you are: int main (int argc, char **argv) { printf ("argv (pointer) is %p\n", argv); printf ("*argv (pointer) is %p "%s"\n", *argv, *argv); printf ("**argv (char) is %c\n", **argv); return 0; }


Give you a complete example program that uses pointers?

int main (int argc, char **argv) { printf ("argv pointer is %p, argv[0] pointer is %p\n", argv, argv[0]); return 0; }


What does char argv mean?

The full form of this is: char* argv[]; Where argv is a pointer to a null-terminated array of null-terminated strings. We use this type of argument to pass command line switches to the main function: int main (char * argv[], int argc); The names of these arguments, argv and argc, are conventional. The argc argument tells us how many elements are in the argv argument, such that argv[0] is the full-qualified name of the executable and argv[argc] is the null-terminator of the array. Any and all other elements (argv[n], such that 0<n<argc) represent programmer-defined command-line switches.


What is an example of a parameter?

'argc' and 'argv' in this line: int main (int argc, char **argv)


What does charred mean?

The full form of this is: char* argv[]; Where argv is a pointer to a null-terminated array of null-terminated strings. We use this type of argument to pass command line switches to the main function: int main (char * argv[], int argc); The names of these arguments, argv and argc, are conventional. The argc argument tells us how many elements are in the argv argument, such that argv[0] is the full-qualified name of the executable and argv[argc] is the null-terminator of the array. Any and all other elements (argv[n], such that 0<n<argc) represent programmer-defined command-line switches.


What is an example of array?

argv, which is the second parameter of function mainint main (int argc, char *argv[])


Are the variables argc and argv are local to main?

Answeryes they are local to mainAnswerargc and argv can be used as variable names anywhere in a C program. If they are declared as arguments to main() then they are local to main:int main(int argc, char *argv[]){// argc and argv are local to main in this short programreturn 0;}


C performs bound checking for array?

Never. For example argv[-1] (or -1[argv]) is perfectly legal.


Wap of function call by value?

This 'question' is not a question, but here you are. int main (int argc, char **argv) { printf ("argc=%d argv=%p\n", argc, argv); return 0; }


What is the purpose of the parenthese following the world main in a c program?

The parentheses following the word main in a C or C++ program introduces the argument list for the call to main. The standard prototype is... int main (int argc, char *argv[]); ...where argc is the number of words on the command line, and argv is an array of pointers to arrays of null terminated arrays of characters, one for each white space delimited word on the command line. If you said `myprog this is a test` you would get argc = 5 argv[0] = "myprog" argv[1] = "this" argv[2] = "is" argv[3] = "a" argv[4] = "test"


How to write a program that accepts two file names as command line arguments?

int main(int argc, char** argv) { char *argument1, *argument2; if (argc < 2) ...{exception}... argument1 = argv[1]; argument2 = argv[2]; } Note: It is up to you to decide if the arguments actually refer to valid filenames. Also, if the filenames contain spaces, this example will not work - you would need to write code to parse (or use library routines) and support quoted filenames.


What is pointer to pointer with examle?

int main (int argc, char **argv):Hereargv is a pointer to a pointer (points to the first element of a pointer-array)argv[0] is a pointer (points to the first character of a string)argv[0][0] is a character