I intend to change the value of count by function B(), but I failed...can't find the reason why...here's my code...
Code:void B(int *count) { do{ *count = *count + 1; }while(condition); } void A(int *count) { *count = 0; B(count); } int main() { int count; A(&count); return 0; }



2Likes
LinkBack URL
About LinkBacks




