I am currently studying C at university. I was instructed to write a program in C, which gives the correct output on my PC and on the university computer, but not on the professor’s PC. The professor gave me information about my program on his PC, and he instructed me to find the error.
I looked at the logic and the expected result, and there is no correlation between them. Of course, this is not a logical mistake if it works on 2 out of 3 computers.
When I asked the professor to mark the task based on the school computer, he did not agree and talked about the real world, that if it does not work on only one computer, my program does not work.
So, I want to ask real-world professionals what they will do in this situation? How can you debug a program if the program does not work on the tool provided to you for testing? That is, if a client reports an error that you cannot reproduce yourself, what can you do? Or how are you going to replicate the error?
FYI, my computer is windows, the school computer is Linux, and the professor's computer is Mac.
source share