Monday, March 18, 2013
3:34 PM

Solution: warning: ISO C90 forbids mixed declarations and code

If you get above warning means in your code operation code in between deceleration see below example

Invalid Code:
main(){
int a;
a = function1();
int b;
b = function2();
}

Valid Code:
main(){
int a;
int b;
a = function1();
b = function2();


So write all declarations one place

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.