A senior at South Central High School in Pitt County was charged with bringing a firearm on school grounds.
The student is Xavier Lee. According to online North Carolina court system records as well as local officials, Lee was charged with a felony.
School officials say the firearm was a starter pistol.
Police say they discovered Lee had the pistol in his backpack thanks to a Crimestoppers tip.
School officials say an assistant principal and the resource officer took Lee out of class, away from other students, and searched his bag.
A starter pistol is used to begin races and only shoots blanks. School officials say it can't hurt another person but could be dangerous for the person using it.
Pitt County School spokeswoman Heather Mayo says the student will be disciplined by the Code of Student Conduct.
Lee bonded out of jail Wednesday afternoon.