Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Pointers and Strings in C || Lesson 69 || C Programing || Learning Monkey ||

Автор: Wisdomers - Computer Science and Engineering

Загружено: 2021-07-21

Просмотров: 21240

Описание:

Pointers and Strings in C

In this class, we will try to understand Pointers and Strings in C.

We already had our discussion on pointers and strings.
Pointers and Strings

We will try to understand the concept of pointers and strings using the programming example below.

In the above example, the first two lines of code create the strings c and c1, as shown below.

We have created a pointer p to the string in the third line of code, as shown below.

The pointer to a string is created as similar to the ‘string,’ we can access the elements of the string pointer, but we can not modify the ‘elements’ of the string pointer.

In the fourth line of code, the pointer variable q will be pointing to the string c1.

Now the string pointer is not a string constant.

The fifth and sixth lines of code modify the third element of the string c and q to H, respectively.

The seventh, eighth, and ninth lines of code are printing the strings c, p, and q as LeaHning, Welcome!, and MonHey.

The tenth line of code is essential to understand because we are trying to modify the string pointer.

The modification of the string pointer is NOT possible.

So, the compiler will produce a run time error and has undefined behavior.

On our compiler, the compiler will NOT execute the lines below it.


#learningmonkey #cprogrammingforbeginners #placements #gatecse #cprogramming #cprogramminglanguage





Link for playlists:
   / @wisdomerscse  


Link for our website: https://learningmonkey.in

Follow us on Facebook @   / learningmonkey  

Follow us on Instagram @   / learningmonkey1  

Follow us on Twitter @   / _learningmonkey  

Mail us @ [email protected]

Pointers and Strings in C || Lesson 69 || C Programing || Learning Monkey ||

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Строка в массиве символов против указателя на строковый литерал | Учебник по программированию на C

Строка в массиве символов против указателя на строковый литерал | Учебник по программированию на C

you will never ask about pointers again after watching this video

you will never ask about pointers again after watching this video

Array of Strings in C || Lesson 70 || C Programming || Learning Monkey ||

Array of Strings in C || Lesson 70 || C Programming || Learning Monkey ||

Pointers as function Arguments || Lesson 62 || C Programming || Learning Monkey ||

Pointers as function Arguments || Lesson 62 || C Programming || Learning Monkey ||

Array of Pointers to Strings in C || Lesson 71 || C Programming || Learning Monkey ||

Array of Pointers to Strings in C || Lesson 71 || C Programming || Learning Monkey ||

Как взломать любое программное обеспечение

Как взломать любое программное обеспечение

5 уровней C++

5 уровней C++

Объяснение указателей C👉

Объяснение указателей C👉

указатели и строка | указатель на символ как строка | указатель на символ против массива символов...

указатели и строка | указатель на символ как строка | указатель на символ против массива символов...

Алгоритмы и структуры данных за 15 минут! Вместо 4 лет универа

Алгоритмы и структуры данных за 15 минут! Вместо 4 лет универа

Introduction to Pointers | C Programming Tutorial

Introduction to Pointers | C Programming Tutorial

#24 C Pointers and Arrays | C Programming For Beginners

#24 C Pointers and Arrays | C Programming For Beginners

Arrays and for Loops in C || Lesson 45 || C Programming || Learning Monkey ||

Arrays and for Loops in C || Lesson 45 || C Programming || Learning Monkey ||

Array of Pointers | Logical Programming in C | Naresh IT

Array of Pointers | Logical Programming in C | Naresh IT

Performing Operations on String Literals

Performing Operations on String Literals

Pointers are easy! 👈

Pointers are easy! 👈

Многопоточность в Java: объяснение за 10 минут

Многопоточность в Java: объяснение за 10 минут

Pointers and arrays

Pointers and arrays

C_64 Strings in C- part 3 | printf and puts function in C

C_64 Strings in C- part 3 | printf and puts function in C

C_101 Function Pointers in C | Pointer to Function | C Programming Tutorials

C_101 Function Pointers in C | Pointer to Function | C Programming Tutorials

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]