I want to be able to call my program as ./program 2.5 and then read that argument from my main function into a variable and have the variable's value to be 2.5.
All I get from the internets are either confusing examples or single character (instead of float) examples. Could you post a sample code for this plz?