Write a program that illustrate command line parameters, C/C++ Programming

Write a Program that illustrate Command Line Parameters?

main(int argc, char *argv[])
{
int i;

for(i = 0; i < argc; i++)
printf("arg %d: %s\n", i, argv[i]);
return 0;
}

 

Posted Date: 6/14/2013 1:58:25 AM | Location : United States







Related Discussions:- Write a program that illustrate command line parameters, Assignment Help, Ask Question on Write a program that illustrate command line parameters, Get Answer, Expert's Help, Write a program that illustrate command line parameters Discussions

Write discussion on Write a program that illustrate command line parameters
Your posts are moderated
Related Questions
#questio c++ program for drawing thick line

Can I explicitly call a destructor if I've allocated my object with new?


Is it possible to create your own header files? - Yes, it's possible to create a customized header file. - To do this, you just need to include function prototypes that you

A: The simplest instance of a smart pointer is auto_ptr that is included in the standard C++ library. Auto Pointer only takes care of Memory leak & does nothing regarding dangling

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec


Dereferencing the Pointer this Sometimes a member function requires to make a copy of the invoking instance so that it can change the copy without affecting the original instan

We started off taking about input, output, CPU and memory devices. Within C we need a method of storing large amounts of data in memory. We have used the idea of variables (pointer

#A Padovan string P(n) for a natural number n is defined as: P(0) = ‘X’ P(1) = ‘Y’ P(2) = ‘Z’ P(n) = P(n-2) + P(n-3), n>2 where + denotes string concatenation. For a string of