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

319 / 259

Write a program in C using command line argument to print Your Name Using Command Line Argument.

Answer:

#include
int main(int argc, char * argv[])
{
      int i;
      if(argc==1)
      {
            printf("You need to enter your name");
            exit(1);
      }
      for(i=1;i

Asked In :: TCS

Post Your Answer Here:

Language:

Post Your Reply Here: