Reference And Dereference Operator In C - Crash Course Of C - Tutorials Of C Language - YouTube

preview_player
Показать описание


Videos are also available by typing cybotech education group in YouTube

-~-~~-~~~-~~-~-
Please watch: "How To Unprotect Excel Sheet Without Password"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

waah kya video hai
aap ban sakte hai sir

UnlockingSomething
Автор

Good Explanation with a suitable Example

sapnasinha
Автор

In C the characters * and & are used in a variety of ways. The meaning has to be decided from the context. 👨‍💻


= The use of * in C =

1. Multiplication: x = y*z;

2. Multiply-assign: x *= y;
Means the same as: x = x*y;

3. Comments: /* your comment here */

4. Pointer declarations: int **p; or int** p;
Read: p is a pointer to an int.

5. Compound pointers: int ***p; or int*** p;
Read: p is a pointer to a pointer to an int.
(Also int ***p; and so on.)

6. De-referencing: x = *p;
Read: Assign to x the value pointed to by p.


= The use of & in C =

1. Logical-and: if ( ( a>1 ) && (b<0) ) ...

2. Bitwise-and: x = a&b;

3. Corresponding bits are and'ed (e.g. 0&1 -> 0)

4. Bitwise-and-assign: x &= y;
Means the same as: x = x&y;

5. Address-of operator: p = &x;
Read: Assign to p (a pointer) the address of x.

satyaprakash
visit shbcf.ru