Command Line Arguments Basic Program
C Programming Language / Command Line Arguments
548Program:
// Program to print all value of // command line argument // once we get the value from command // line we can use them to solve our problem #include int main(int argc, char *argv[]) { int a,b; int i; if(argc<2) { printf("please use \"prg_name value1 value2 … \"\n"); return -1; } for(i=1; i
Output:
11 22 33
Explanation:
arg[ 1]: 11
arg[ 2]: 22
arg[ 3]: 33
This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.
# C Tutorials
# JAVA Tutorials
# HTML Tutorials
# Computer Fundamental
# Data Structure
# DBMS Tutorials
SQL
# C# Language
# R Language
# PHP
# Python
# Vue JS