I am struggling in Caesar in Pset2. I am not being able to understand what is the function of argc and from where will the code pickup alphabets? That is, how will the software understand that "b" comes after "a" or "c" comes after "b". Thankyou

  • thanks a lot. I have understood
    – Padma
    Commented Oct 26, 2018 at 14:32

1 Answer 1


For your first question: argc is the number of arguments.

But remember that the array of arguments starts with the name of the program ...

For your second question, the explanation can be found in second lecture of week 2, around here: https://video.cs50.net/2017/fall/lectures/2?t=1h7m10s

Or in the slides, on page 39-41.

And to quote Cliff B:

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .