Wednesday, March 16, 2011

Echo command operation in c code

# include "stdio.h"
int main(int argc, char *argv[])
{
int nloop;
for(nloop=1;nloop<argc;nloop++)
{
printf("%s",argv[nloop]);
}

return 0;
}

OUTPUT:
NOTE: Please execute from CMD window like below

C:\KARTHI\VSC\Echo\debug>Echo.exe "Welcome to www.ctargets.blogspot.com"
Welcome to www.ctargets.blogspot.com
C:\KARTHI\VSC\Echo\debug>

No comments:

Post a Comment