'how to use different commands for the same program in C

im relatively new to C (~1 week), i wanted to make a calculator such that when i type 2*2 in the console it gives the solution, how do i do this?

the options i got from the #C IRC is to use link or symlink, it would mean making billions of them

i found out when i type python3 and then type 2*2, python gives the output as 4 correctly i wonder how it is done so i can implement it in my program as well (but make it such that it executes directly from the terminal)?

c


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source