Addition using command line arguments.

Опубликовано: 22 Май 2026
на канале: onlycodes
21
0

Here is the detailed explaination
we can only have two arguments in the main function
we passed two integers from command line
then they are assigned to a and b
atoi is used to convert alphabet to integer
STEPS TO FOLLOW FOR PASSING ARGUMENTS THROUGH COMMAND PROMPT
1)Compile the program so .exe file will be generated
2)Open command prompt
3) Give the foldername where your program is saved\then give your filename.exe
4) Then enter the numbers