Pergunta de entrevista da empresa UNUM (CA)

What is the difference between a class and a struct? Given an array and target, write a function that will find the target.