#commandlinearguments
#codewithbhupendra #cprogramming
command line argument is a technique in which values are passed to the program along with programname from Windows, Linux/Unix or Mac Operating System Command Prompt/Terminal.
In this Video, I am covering two example programs
i) command line arguments in c to add two numbers
ii) command line arguments in c to find simple interest
Most of the Operating System Commands are based on command line arguments. Example cp sourcefile targetfile.
Here cp is a program to copy file, sourcefile and target files are two arguments to it.
Concept of Command Line Arguments is available in almost all programming languages like C, Java, Python, etc. So, extensively asked during programming interview questions.
In C, We write
int main(int argc, char* argv[ ])
Here argc is argument count
and argv is argument values
Where as in Java, we write
public static void main(String args[ ])
Also, see my video:
Command Line Arguments in Java in English
Hindi: • Command Line Arguments in Java in Hindi
Sindhi: • Command Line Arguments in Java in Sindhi
English: • Command Line Arguments in Java in Eng...
In Pyhton:
import sys
and then using sys.argv
You can Watch my videos on Code::Blocks
I ) Top 10 Differences – Turbo C and Code::Blocks • Top 10 Difference between Turbo C++ a...
II) Installing and Setting Code::Blocks
Hindi: • Codeblocks Installation and Settings ...
English: • Codeblocks Installation and Settings...
Sindhi: • Codeblocks Installation and Settings ...
Hello Friends,
My Name is Bhupendra Khilrani
You can Subscribe to my channel
/ codewithbhupendra
and
tech code guruji
/ @techcodeguruji
Watch my following Playlists:
C Programming in Hindi
• C Programming in Hindi
C++ Tutorial in Hindi
• C++ Tutorial in Hindi
C Interview Series:
• Count occurrence of each character in...
Java Programming in Hindi
• Java Programming in Hindi
Python Tutorial in Hindi
• Python Programming Tutorial
PL/SQL Tutorial in Hindi
• Multiple if else in PL/SQL with examp...