Command line arguments program
Title
Question
What does argc and argv indicate in command-line arguments?
Advance-C Command-line-arguments-in-C 02-03 min 10-20 sec
Answers:
argc and argv are explained in detail in this tutorial itself. Pls watch the tutorial carefully and hear the explanation. You will be able to understand.
The name of the variable argc stands for "argument count"; argc contains the number of arguments passed to the program. The name of the variable argv stands for "argument vector". ... Each string is one of the arguments that was passed to the program
i think your query solve with this answer. reply plz
<span style="color: rgb(60, 64, 67); font-family: Roboto, HelveticaNeue, Arial, sans-serif; font-size: 18px;">The name of the variable </span>argc<span style="color: rgb(60, 64, 67); font-family: Roboto, HelveticaNeue, Arial, sans-serif; font-size: 18px;"> stands for "</span>argument<span style="color: rgb(60, 64, 67); font-family: Roboto, HelveticaNeue, Arial, sans-serif; font-size: 18px;"> count"; </span>argc<span style="color: rgb(60, 64, 67); font-family: Roboto, HelveticaNeue, Arial, sans-serif; font-size: 18px;"> contains the number of </span>arguments<span style="color: rgb(60, 64, 67); font-family: Roboto, HelveticaNeue, Arial, sans-serif; font-size: 18px;"> passed to the program. The name of the variable</span>argv<span style="color: rgb(60, 64, 67); font-family: Roboto, HelveticaNeue, Arial, sans-serif; font-size: 18px;"> stands for "</span>argument<span style="color: rgb(60, 64, 67); font-family: Roboto, HelveticaNeue, Arial, sans-serif; font-size: 18px;"> vector". A vector is a one-dimensional array, and</span>argv<span style="color: rgb(60, 64, 67); font-family: Roboto, HelveticaNeue, Arial, sans-serif; font-size: 18px;"> is a one-dimensional array of strings.</span>
<span class="ILfuVd MqYJ0" style="max-height: 999999px; font-family: Roboto, HelveticaNeue, Arial, sans-serif; font-size: 18px; line-height: 24px; color: rgb(60, 64, 67);"><span class="hgKElc" style="max-height: 999999px; padding: 0px 8px 0px 0px;">The name of the variable argc stands for "argument count"; argc contains the number of arguments passed to the program. The name of the variable argv stands for "argument vector". A vector is a one-dimensional array, and argv is a one-dimensional array of strings.</span></span>
<span class="ILfuVd MqYJ0" style="max-height: 999999px; font-family: Roboto, HelveticaNeue, Arial, sans-serif; font-size: 18px; line-height: 24px; color: rgb(60, 64, 67);"><span class="hgKElc" style="max-height: 999999px; padding: 0px 8px 0px 0px;">The name of the variable argc stands for "argument count"; argc contains the number of arguments passed to the program. The name of the variable argv stands for "argument vector". A vector is a one-dimensional array, and argv is a one-dimensional array of strings.</span></span>
argc and argv are explained in detail in this tutorial itself. Pls watch the tutorial carefully and hear the explanation.
argc and argv are explained in this tutorial itself. Pls watch full tutorial carefully and you will be able to understand.
Login to add comment