GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 7 of 255    Print  
How do I access command-line arguments?

  
Total Answers and Comments: 2 Last Update: August 08, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 20, 2005 12:23:35   #1  
Santosh        

RE: How do I access command-line arguments?
1. using Argv and Args parameters.....from main() 
2. By LPSRT lpCmdLine String in Winmain()

 
Is this answer useful? Yes | No
August 08, 2005 13:57:25   #2  
Sibin K C        

RE: How do I access command-line arguments?
Command line arguments can be accessed by using a string type and integer type variables as the main function arguments. The string includes all what u typed in the command line(eg:hello.exe jijo nijesh). The int variable shows the no of words in it.
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Command line arguments can be accessed by using a string type and integer type variables as the main function arguments. The string includes all what u typed in the command line(eg:hello.exe jijo nijesh). The int variable shows the no of words in it. ...

Latest Answer : This can be done Using _asm{} operator, first  char* mem_ptr; Mov EAX, DWORD PTR[Memory Address] Then...  Mov mem_ptr, EAX  Now mem_ptr will point to the meory location needed and we can access ...

What is the maximum combined length of command line arguments including the space between adjacent arguments?

If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?

Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

Latest Answer : class CommandLineTest{ public staic void main(String a[]){  for(int i=0;i

Latest Answer : cc -o x.o x.c creats a object file ...

Which header file should you include if you are to develop a function which can accept variable number of arguments?

Latest Answer : use the variable length argument - va_arg , va_list , ca_start and va_end macros ...

Can there be at least some solution to determine the number of arguments passed to a variable argument list function?


 Sponsored Links

 
Related Articles

OOPS Tutorials

Object oriented programming OOP is a computer science term used to characterize a programming language that began development in the 1960’ s The term object oriented programming’ was originally coined by Xerox PARC to designate a computer application that describes the methodol
 

N-Tier Architecture: Data Access Layer

N Tier Architecture Data Access Layer In an N Tier architecture the data access layer consists of components that aid one in the process of accessing the database When it is used correctly the data access layer serves as an abstract level for the structures of the database Simple changes that are ma
 

How to Access C++ Class Members

How to Access C Class Members In this C tutorial you will learn how to access Class members dot operator or class member access operator difference between struct and class and  scope resolution operator mosgoogle center It is possible to access the class members after a class is defined an
 

What are Data Access Tools

Data access is the process of entering a database to store or retrieve data. Data Access Tools are end user oriented tools that allow users to build structured query language (SQL) queries by pointing and clicking on the list of table and fields in the data warehouse. Thorough computing history, t
 

What is Access Path

In relational database management system (RDBMS) terminology, Access Path refers to the path chosen by the system to retrieve data after a structured query language (SQL) request is executed. A query may request at least one variable to be filled up with one value or more. A query may look like th
 

What is Access Point

An access point (AP; or also "WAP" for "wireless access point") is a node responsible for the formation of a wireless network through connection between wireless communication devices. It acts as a central transmitter and receiver of wireless radio signals, and is
 

On-Line Transaction Processing

On-Line Transaction Processing On-Line Transaction Processing is a processing that supports the daily business operations. Also know as operational processing and OLTP.  An OLTP is a database which must typically allow the real-time processing of SQL transactions to support traditional reta
 

On-Line Analytical Processing

On-Line Analytical Processing On-Line Analytical Processing is a processing that supports the analysis of business trends and projections. It is also known as decision support processing and OLAP.  An OLAP software enables companies to have real-time analysis of data stored in a database. A
 

What is the use of truncate command?

Truncate command will delete all records and the most important thing to make note of truncate command is since truncate command cannot be rolled back one must make sure to take proper backup of table data before performing the truncate command. Truncate command is thus used to remove all rows from
 

How to define command line arguments

The main functions can have arguments passed which are called as command line arguments. There are two command line arguments: Argument count denoted by argc and Argument vector denoted by argv The argc is an integer variable which denotes the number of parameters passed and argv is pointer to a
 

Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape