Skip to main content
5 events
when toggle format what by license comment
Jan 3, 2016 at 23:20 comment added sophiemath 2nd question: I did update50 and got this: Package configuration, Configuring grub-pc, and so on. Is it bad? What is it saying?
Jan 3, 2016 at 23:19 comment added sophiemath Ugh, enter key! Anyways, 1st question... up vote 0 down vote favorite I have watched two videos about Command-line Arguments: Lecture Week 2 cont. and Christopher Bartholomew's video (CS50) on command-line arguments. In the lecture, Mr. Bowden says the number in argc is counted this way: argv[0] is command, argv[1] is 1st argument, and so on. But in the other video, argv[0] is command, argv[1] is the 1st argument, then ... argv[n] is null. I think the second video is correct because when Mr. Bowden put in hello-3 as his first argument, he got hello, (null) since (null) is the second argument.
Jan 3, 2016 at 23:17 comment added sophiemath Also, 2 more question:
Jan 3, 2016 at 23:17 comment added sophiemath One question: why do you add 2 to 10 (ages[2])? You said you added 1?
Jan 2, 2016 at 23:40 history answered Cliff B CC BY-SA 3.0