Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Practice Tech Mahindra Essay Topics

Program Discussion :: Basics

Home > Programs > Basics

317 / 259

Write a C program using command line arguments which will take numbers as input and Find the average of the numbers.



int main(int argc, char * argv[])
    int  sum = 0,i = 1,count = 0;
    if(argc == 1)
         printf("Enter the number \n");
    count = argc - 1;
    while (i 

Asked In :: TCS

Post Your Answer Here:


Post Your Reply Here: