Hi,
I am very new to this forum and i have a problem with my C assignment. Im using Borland C++ 4.52 and i keep getting an error saying:

General Protection Exception
0x241F:0X41C1
NONAME02(1)0X241F:0X41C1 Processor Fault

It not the computer its the code at least thats what i figured because i tried the same code on 6 pc and the same error pops up.

I will attach the code so that you can have a better understanding of my problem.

Re: I keep getting an error message on my computer called General Protection Exception... 80 80

Greetings,

A simple fix I saw. In your function gettemps() change:

scanf("%f",temp[i]);

To"

scanf("%f",[b]&[/b]temp[i]);

if If you want to store the result of a scanf operation on a standard variable you should precede it with the reference operator, i.e. an ampersand sign (&).


- Stack Overflow

Re: I keep getting an error message on my computer called General Protection Exception... 80 80

hi,
I didnt even notice that :) thanks for your help i really appreciate it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.