How do I access command-line arguments?
Answer Posted / reejusri
In order to access the command arguments, the main()
function must have a prototype similar to the following.
int main(int argc, char * argv[])
The names argc and argv are usually used for the
parameters, but a programmer could use different names.
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
Do pointers take up memory?
Difference between linking and loading?
What is hashing in c language?
What is a constant and types of constants in c?
What is the size of enum in bytes?
Is there a built-in function in C that can be used for sorting data?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
Explain two-dimensional array.
What are the types of functions in c?
What are 3 types of structures?
What are identifiers c?
Is main a keyword in c?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
Why do we use int main instead of void main in c?