Lab2:
Argument Arrays
Complete the following tasks and show its execution for different inputs. In your lab report,
show the program code and execution. Show execution using a transcript or screenshots.
Task 1: Write a C program that prints all the Command line arguments.
Task 2: Write a C program that performs the summation of all the command line arguments.
Task 3: Write a C program that makes tokenizes a string passed through the command line.
Task 4: Write a C program for concatenation of command line arguments.
Task 5: Write a C program that displays if the arguments passed at command line are prime or
composite.
Task 6: If you have a command line argument as follows:
225g2:6g33g55g66,5
Write a C program that adds up all the integer parts and displays the result.