Русские видео

Сейчас в тренде

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




Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



Structures in C || Lesson 72 || C Programming || Learning Monkey ||

Structures in C In this class, we will try to understand Structures in C. Before understanding the concept of structure, we will recap the idea of the aggregate variables, as shown in the image below. Arrays in C Variables in C Variables in C Aggregate variables are the variables that can store more than one value. We have discussed that array and structure are aggregate variables. Table of Contents Structures in C Declaration of a Structure Structures in C The only difference between the arrays and structures is the elements of the array are of the same type, but the members of the structure may be of different types. When we need to store a collection of related items, a structure is a logical choice. For example, if we want to collect students’ data, then the data items are name, number, phone numbers are the data related to the students. In such cases, structures are the right choice. Declaration of a Structure The struct is the keyword used to declare a structure. Within the enclosed curly braces are the members of the structures. The stu1 and stu2 are the variables of the structures. For each variable, the compiler will create the memory for all the members. The image below is how the compiler will create the memory for stu1 and stu2. #learningmonkey #cprogrammingforbeginners #placements #gatecse #cprogramming #cprogramminglanguage Link for playlists:    / @learningmonkey   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]

Comments