Question:

C programming: is there a way to scan the contents of an array?

by  |  earlier

0 LIKES UnLike

is there any command in C that scans elements in an array to find a certain string? i have a student records program im working on that has last names and marks of an imaginary class. i want to have an option to type in the students last name and change their mark. id have a pretty good idea if there were some kind of command that can read the contents of an array? thanks.

 Tags:

   Report

3 ANSWERS


  1. yeah, it's called a for loop.


  2. Use the "strstr()" call in string.h.

    Good luck.

  3. C only has a couple comparison methods that you can use strcmp and memcmp.

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.