C Programming tutorial #14 Null Pointer, Typecasting, Pointer Arithmetic
C Programming tutorial #14 pointer variable, Dereferencing operator, Null pointer, Pointer types, Typecasting, Pointers and arrays, Pointer arithmetic.
00:20 Contents of a pointer variable
01:46 Dereferencing operator, Null pointer
05:20 Pointer types, Typecasting and Examples
10:40 Pointers and arrays, Pointer arithmetic
- The "dereferencing operator" is the asterisk and it is used as follows:
*p= 7;
- will copy 7 to the address pointed to by p. Thus if p "points to" k, the above statement will set the value of k to 7.
- Using '*' is a way of referring to the value of that which p is pointing to, not the value of the pointer itself.
NULL pointers:
- Values of a pointer variable:
- Usually the value of a pointer variable is a pointer to some other variable
- A null pointer is a special pointer value that is known not to point anywhere.
- No other valid pointer, to any other variable, will ever compare equal to a null pointer !
- Predefined constant NULL, defined in stdio.h
- Good practice: test for a null pointer before inspecting the value pointed !
Pointer types:
- C provides for a pointer of type void. We can declare such a pointer by writing:
void *vptr;
- A void pointer is a generic pointer. For example, a pointer to any type can be compared to a void pointer
- Typecasts can be used to convert from one type of pointer to another under the proper circumstances
Pointers and arrays:
- In C, there is a strong relationship between pointers and arrays
- Any operation that can be achieved by array subscripting can also be done with pointers
C Programming Tutorial/ Lectures/ Course with Data Structures & Algorithms @ https://goo.gl/K6VbgL
Machine Learning Complete Tutorial/Lectures/Course from IIT (nptel) for GATE @ https://goo.gl/AurRXm
Discrete Mathematics for Computer Science for GATE @ https://goo.gl/YJnA4B (IIT Lectures for GATE)
Best Programming Courses @ https://goo.gl/MVVDXR
Operating Systems Lecture/Tutorials from IIT for GATE CSE @ https://goo.gl/GMr3if
MATLAB Tutorials for GATE @ https://goo.gl/EiPgCF
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «C Programming tutorial #14 Null Pointer, Typecasting, Pointer Arithmetic», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.