The National Park Service website has excellent articles on bears and what you should do and not do to have a pleasant camping experience. Also the internet is full of articles about bears. But with that said, as others have said, if the bear really wants in, they will get in. I remember as a small boy when on vacation seeing what a bear can do to a car if he or she wants in. I saw cars with the doors pulled down from the door edge,just like rolling down a window.
They crawl in, tear out the backseat and get the trunk area. I have been backpacking and RV camping for fifty years and have had only one bear encounter so be "bear smart" read up on the do's and don'ts and have a great time.