Home
Add Document
Sign In
Create An Account
Viewer
Transcript
void swap(int a, int b) { int tmp = a; a = b; b = tmp; }
void swap(int *a, int *b) { int tmp = *a; *a = *b; *b = tmp; }
foo’s locals foo’s parameters main’s locals main’s parameters
text initialized data uninitialized data heap
stack environment variables
to be continued...
Untitled - CS50 CDN
void swap(int a, int b). { int tmp = a; a = b; b = tmp;. } Page 11. void swap(int *a, int *b). { int tmp = *a;. *a = *b;. *b = tmp;. } Page 12. main's parameters.
Download PDF
3MB Sizes
1 Downloads
407 Views
Report
Recommend Documents
No documents
×
Report Untitled - CS50 CDN
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
×
Sign In
Email
Password
Remember Password
Forgot Password?
Sign In