week 1
tips:
if you want to learn about the Linux,and find this article,please ensure that you realized this article is the summary from the my study.you can look this as a note,and get some confined knowledge,but if you want to study deeply,you should search for some public courses of some famous teachers.
What you don't realized about c:Point
Understanding Declarations
the following code seems uneasy to understand
c
(*(void(*)())0)();
we can rewrite it like this:
c
// define a function ptr
typedef void (*funcptr)();
// transform 0 to a function ptr we difined before forcely
// and call this function
(* (funcptr) 0)();
Interview question of technology company
c
void **(*d) (int &,char ** (*)(char *,char **));
the explain of front declare:
d is a pointer to a function that takes two parameters:
*1 a reference to an int and
*2 a function pointer that takes two parameters
** 2.1 a pointer to char
** 2.2 a pointer to pointer to char
Easy C Pointer
please look at this code:
c
void main(){
int a = 15;
int b = 2;
int c = 39;
}
if you coded &b maybe you want a reference,and you can called it address of too;
if you coded *&b,the affection just equal b, many body thought that * is a pointer,it's just approximate right,the absolute answer is value of;