Forums Programming Assignment Help C program … command line arguments

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1916
    ahwriter
    Participant

    C program … command line arguments

    #10501
    Aakanksha
    Participant

    When we execute our C program, operating system loads the program into memory. In case of DOS, it first loads 256 bytes into memory, called program segment prefix. This contains file tables,environment segment, and command line information. When we compile the C program the compiler inserts additional code that parses the command, assigning it to the argv array, making the arguments easily accessible within our C program.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.