i m using visual studio 2012 and i pass three command line arguments as 10 20 30 and when i m compile the program get error.....need help
Code:#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
main(int n,char **p)
{
int sum=0,i;
if(n>=2)
for(i=0;i<=n;i++)
sum=sum+atoi(p[i]);
printf("Sum=%d\n",sum);
getch();
}