[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Program Discussion :: Basics

Home > Programs > Basics

319 / 279

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: