An open API service indexing awesome lists of open source software.

https://github.com/lamouchi-bayrem/simple-interractive-app

solve the interractive probleme for compiling c scripts using argc and argv
https://github.com/lamouchi-bayrem/simple-interractive-app

argc-argv c cpp interractive

Last synced: about 2 months ago
JSON representation

solve the interractive probleme for compiling c scripts using argc and argv

Awesome Lists containing this project

README

          

Example Runs:

Case 1: With Command-line Arguments

$ ./sum 4 6

Sum: 10

Case 2: Missing Arguments (Interactive Mode)

$ ./sum

Enter first number: 7

Enter second number: 3

Sum: 10

Key Concepts Used:

✅ argc & argv[] to handle command-line arguments

✅ atoi() to convert string arguments to integers

✅ scanf() for interactive input when arguments are missing