Sunday, July 12, 2009

What is Extended Variables in C language?

it is related to C language. its a technical question.

What is Extended Variables in C language?
Do you mean "external" variables.





If you do, these are variables that are declared in one file, say foo.c, but referenced in another file, say bar.c.





In this case, the compiler has to be told when compiling bar.c what is the type of the variable. To accomplish this, you use an "extern" command that will specify the type of the variable, but not allocate space for it.
Reply:Are you sure you mean "extended variables"? Extended variables usually refers to variables with additional bits, but they are not C-specific, and I haven't heard them used specifically with C in the past.


No comments:

Post a Comment