Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: FR5739 variables

$
0
0

[quote user="460822"]The compiler complains ... data is undefined.[/quote]

I cannot reproduce that behavior.  I do get this diagnostic ...

"file.c", line 3: warning: variable "data" was set but never used

But that is to be expected.  The variable data is local to the function main.  Once main goes out of scope, so does data.  And within the scope of main, data is written, but it is never read.

Thanks and regards,

-George


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>