C program code for add two number using arguments
#include
void main(int argc,char *argv[])
{
int a,b;
if(argc!=3)
{
printf("\nWrong Argument");
exit();
}
else
a=atoi(argv[1]);
b=atoi(argv[2]);
printf("\nAddition=%d",a+b);
}
code for C program code for add two number using arguments
#include
void main(int argc,char *argv[])
{
int a,b;
if(argc!=3)
{
printf("\nWrong Argument");
exit();
}
else
a=atoi(argv[1]);
b=atoi(argv[2]);
printf("\nAddition=%d",a+b);
}
code for C program code for add two number using arguments
0 comments: