what is meant by :
#include<stdio.h>
int main( int argc ,char*argv[])
{
}
what is meant by :
#include<stdio.h>
int main( int argc ,char*argv[])
{
}
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
argc is number of command line arguments
and argv[0] points to name of file , argv[1] points to first command line argument and vice versa
for eg
u execute
./a.out 1 2 3 4
argc=4
argv[0]= ./a.out
argv[1]=1
argv[2]=2
argv[3]=3
argv[4]=4
thnks mam ,
what is use of commamnd line arguments ?
you can use instead of getting the input from stdin(scanf)