Name: Anonymous 2010-11-06 21:38
question /anus/,
If i pass a variable via it's pointer rather than value am i then not creating any more memory into the program?
If i pass a variable via it's pointer rather than value am i then not creating any more memory into the program?
#define ANUS 1
int main(){
char i = ANUS; //8 bits
applebees(i); //2 chars; 16bits
//vs:
tgifridays(&i); //1 char; 8 bits
return 0;
}
void applebees(int i){
return;
}
void tgifridays(int *i){
return;
}