In C, I keep getting the error segmentation fault: 11. I am trying to do priority queues to count the frequency of each

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

In C, I keep getting the error segmentation fault: 11. I am trying to do priority queues to count the frequency of each

Post by answerhappygod »

In C, I keep getting the error segmentation fault: 11. I am
trying to do priority queues to count the frequency of each
character In a file. Here is my Code...
This is the code to all of my priority queue, functions, I
believe that my problem is in printQueue that is giving me set
fault 11, but I am not sure.
This is the code for my main function where I use command line
to take in a text file and read through the data, then I call
create createQnode(), pusQueue(), popQueue, printQueue.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply