Загрузка...

String In Char Array VS. Pointer To String Literal | C Programming Tutorial

The difference between a string stored in a char array vs. a pointer to a string literal in C. In other words the difference between: char s[] = "string" vs. char *s = "string". Importantly, we discuss why we can't modify the string in the case of a pointer to a string literal. Source code: https://github.com/portfoliocourses/c-example-code/blob/main/char_array_vs_string_literal_pointer.c. Check out https://www.portfoliocourses.com to build a portfolio that will impress employers!

Видео String In Char Array VS. Pointer To String Literal | C Programming Tutorial канала Portfolio Courses
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять