English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

This is an error I received while working with the C compiler Miracle C

2007-12-10 15:31:45 · 3 answers · asked by David J. U 1 in Computers & Internet Programming & Design

3 answers

usually means that you are trying to assign a string value to an integer.
char *str;
int val;

val = str; <- This will produce the error you got.
str = val; <- This also will produce the error.

struct
{
int dummy;
} test;
int tester;

tester = test; <- More obscure, still an error.
test = tester; <- Still an error.

2007-12-10 17:13:52 · answer #1 · answered by Anonymous · 0 0

Some types of assignment are totally incompatible.

You can assign a short integer value to a longer integer with no sweat. But if you tried to assign a long string to a short integer, you might get that class of error. Or if you tried to assign a data structure or an entire array to a simple scalar variable, that would do it, too.

2007-12-10 23:57:33 · answer #2 · answered by The_Doc_Man 7 · 0 0

do you know what data types are. do you know what an assignment statement is. what were you trying to do?

2007-12-10 23:35:01 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers