Thanks everyone![]()
Thanks everyone![]()
Code:/ ___|_ _ ___ ___| |_ | | _| | | |/ _ \/ __| __| | |_| | |_| | __/\__ \ |_ \____|\__,_|\___||___/\__|
Nice +rep![]()
The owls are not what they seem...
Thanks debtboy!![]()
Code:/ ___|_ _ ___ ___| |_ | | _| | | |/ _ \/ __| __| | |_| | |_| | __/\__ \ |_ \____|\__,_|\___||___/\__|
Can't +rep you, but you did well!
Just remember me when you have spread it all around![]()
Code:/ ___|_ _ ___ ___| |_ | | _| | | |/ _ \/ __| __| | |_| | |_| | __/\__ \ |_ \____|\__,_|\___||___/\__|
Great tutorial, definitley easy to read and understand for a total C noob like me.
Great job + Rep!
Thanks JamesI'm glad I have helped you out.
![]()
Code:/ ___|_ _ ___ ___| |_ | | _| | | |/ _ \/ __| __| | |_| | |_| | __/\__ \ |_ \____|\__,_|\___||___/\__|
I just wanted to add this, from a C99 draft:
If they are declared, the parameters to the main function shall obey the following constraints:
- The value of argc shall be nonnegative.
- argv[argc] shall be a null pointer.
- If the value of argc is greater than zero, the array members argv[0] through argv[argc-1] inclusive shall contain pointers to strings, which are given implementation-defined values by the host environment prior to program startup. The intent is to supply to the program information determined prior to program startup from elsewhere in the hosted environment. If the host environment is not capable of supplying strings with letters in both uppercase and lowercase, the implementation shall ensure that the strings are received in lowercase.
- If the value of argc is greater than zero, the string pointed to by argv[0] represents the program name; argv[0][0] shall be the null character if the program name is not available from the host environment. If the value of argc is greater than one, the strings pointed to by argv[1] through argv[argc-1] represent the program parameters.
- The parameters argc and argv and the strings pointed to by the argv array shall be modifiable by the program, and retain their last-stored values between program startup and program termination.
Dude, do you spend your free time reading and reviewing the C standard?![]()
Code:/ ___|_ _ ___ ___| |_ | | _| | | |/ _ \/ __| __| | |_| | |_| | __/\__ \ |_ \____|\__,_|\___||___/\__|
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum