COMMENT LINE ARGUMENT IN C PROGRAMMING LANGUAGE


The Comment lines start with /*  and terminate with /. These statements can be put anywhere in the program comment lines are not executable statements therefore anything between /* and */ is ignored by the Compiler . These are used in a program to enhance its readability and understanding

Command line arguments are the arguments specified after the program name in the operating system's command line, and these arguments values are passed to your program at the time of execution from your operating system. For using this concept in your program, you have to understand the complete declaration of how the main function works with this command-line argument to fetch values that earlier took no arguments with it (main() without any argument).
So you can program the main() is such a way that it can essentially accept two arguments where the first argument denotes the number of command line arguments whereas the second argument denotes the full list of every command line arguments. This is how you can code your command line argument within the parenthesis of main(): 


There  are two type of comment line
1) Single Line comment //
2) multiline comment /*………………*/ 


             


 

Post a Comment

Please do not any spam link in the comment

Previous Post Next Post