Monday 27 August 2012

C command line program code using argv using for loopExample

 C command line program code using argv  using for loop 
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main(int argc,char*argv[])
{
 int i,p=1;
// clrscr();
 if(argc!=3)
 {
 printf("\nerror");
 exit(1);
 }
 for(i=1;i<=atoi(argv[2]);i++);
  {
  p=p*atoi(argv[1]);
  printf("%d",p);

  }
  getch();
 }
examples for C command line program code using argv  using for loop
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: