Logo/

C Programming: Arrays and Strings

Log in

Made with ScholarlyMake flashcards like these from your own notes

C Programming: Arrays and Strings

Questions and answers

6 cards
  1. Question:What is the value at index [1][2] in the memory area below?

    Answer:A

  2. Question:How can arrays be passed as arguments to functions?

    Answer:By value or by reference

  3. Question:What is a string?

    Answer:An array of characters terminated by '\0'

  4. Question:How is a string declared in C?

    Answer:char str[10] = "Hello";

  5. Question:How is individual characters of a string accessed?

    Answer:Using the array subscript notation, like str[1]

  6. Question:What are some of the string manipulation library functions in C?

    Answer:strcpy(), strcat(), strlen(), strcmp()