flowchart for command line arguments in c
Answers
Answered by
0
Answer:
Let's see the example of command line arguments where we are passing one argument with file name.
#include <stdio.h>
void main(int argc, char *argv[] ) {
printf("Program name is: %s\n", argv[0]);
if(argc < 2){
printf("No argument passed through command line.\n");
}
else{
printf("First argument is: %s\n", argv[1]);
Explanation:
Similar questions
Hindi,
5 months ago
Geography,
5 months ago
Psychology,
10 months ago
Chemistry,
10 months ago
English,
1 year ago