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
- Host: GitHub
- URL: https://github.com/lamouchi-bayrem/simple-interractive-app
- Owner: Lamouchi-Bayrem
- Created: 2025-02-08T22:24:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-18T02:34:49.000Z (over 1 year ago)
- Last Synced: 2025-06-16T06:47:20.390Z (about 1 year ago)
- Topics: argc-argv, c, cpp, interractive
- Language: C
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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