gcc - return dynamically generated value from function -
due misconception of gcc memory allocation have questions regarding 1 time variable types , secondly question returning dynamically changing values function.
is there function analyze type of variable. (i have compiler warnings tell me wrong type usage. type-analyzing occurs through out compilation.)
how create function gives me value function generated? instance have function , main part phone call function. phone call of function should give me value operating one:
int func(){ for(i; 0 256;i++){ homecoming i; } } main(){ for(j; 0 256;j++){ func(); // should give me current value of - e.g. = 3 -> j = 3 } } this makes me question when should utilize either function arguments or rather homecoming value giving me value. (what's homecoming value restricted type?)
certainly gcc compiler warnings name involved type(s).
possibly mean that: int func() { static int i; homecoming i++; }
what's homecoming value restricted type?
iso/iec 9899:201x, 6.9.1 function definitions, constraints
3 homecoming type of function shall void or finish object type other array type.
gcc types gcc-warning
No comments:
Post a Comment