Command Line arguments using C language
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
void main(int argc,char *argv[])
{
int a=0;
int j;
printf("%d",argc);
j=atoi(argv[1]);
for(;a<j;a++)
{
printf("\n%s",argv[2]);
}
getch();
}
Your Learning Road Goes Ahead...
0 comments:
Post a Comment
You are most welcome for making comments here. I will consider your view and will reply you soon.