C,CPP Programming & Variable Naming Rules
file: can be only filename, or full/relative path + filename.
location: full/relative path + filename.
filename: only name part, no path in string.
path: full/relative path w/o filename.
Common & Suggested Usages
//Common → Suggested chars → charSize bytes → byteSize int * buf → int *p_intListing char * buf → char *p_inputFile ifstream in→ ifstream inputStream
IF Statement Evaluation
similar for boolean vars:
true evaluates to int
cout << false // 0 cout << true // 1
ph_ pointer of a variable in host RAM.
pd_ pointer of a variable in device mem.
pb_ pointer of a variable in block shared mem.
allocate & free mem
Everytime, when doing:
The following 2 actions are also required: