2 2 votes Q.18 a. Hello b. World c. None Programming in C + – gate_forum 943 views answer comment Share Follow Print See all 5 Comments 5 5 Comments reply Shobhit Joshi commented Jan 6, 2019 reply Follow flag ./simple 0 0 replyShare Kunal Kadian commented Jan 6, 2019 reply Follow flag c. None argv[0] contains program names, user supplied values are stored from argv[1] onwards. 0 0 replyShare pawan kumarln commented Jan 7, 2019 reply Follow flag /simple correct....@shobhit Can u little bit explain? 0 0 replyShare Shobhit Joshi commented Jan 7, 2019 reply Follow flag $argv$ contains all the parameters passed to it through command line and the filename, $argc$ contains the count of the parameters passed +1 for the filename For eg. ./fname param1 param2 argc = 3(count of parameters +1 for filename) argv = [ "./fname", "param1", "param2" ] At last we can say, $argv$ is the argument to the main function, and $argc$ takes count of it and $+1$ for storing the filename. 1 1 replyShare srestha commented Jan 7, 2019 reply Follow flag argv[0] will print ./simple argv[1] will print hello argv[2] will print world and argc will print 3 0 0 replyShare Please log in or register to add a comment.