Nested Structures in C Programming Language Video Tutorial

  Рет қаралды 64,083

LearningLad

LearningLad

Күн бұрын

Пікірлер: 25
@porchezhiyann5737
@porchezhiyann5737 8 жыл бұрын
ya...its nice explaination...can we use pointer for nested structure ...also if we are using single pointer..that assigned with address of outer structure..can we access the elements inside nested structure also using the same pointer?
@zaffariqbal3671
@zaffariqbal3671 6 жыл бұрын
sir what is the limitation of declaring another structure inside the structure... means how many maximum number of variable of struct type can be declared inside student variable
@stacyhackney6100
@stacyhackney6100 2 жыл бұрын
Thank you
@LearningLad
@LearningLad 2 жыл бұрын
You're welcome
@pakinam190
@pakinam190 4 жыл бұрын
Thanks alot
@sait5489
@sait5489 8 жыл бұрын
sir,is there any difference between defining structure inside/outside main ??
@hukmur3712
@hukmur3712 8 жыл бұрын
no difference. ı choose before main.
@pkrdevil
@pkrdevil 11 жыл бұрын
thanks alot. It was nicely explained.
@kuru72
@kuru72 9 жыл бұрын
Is there a reason why you keep using character arrays in your structs instead of strings?
@LearningLad
@LearningLad 9 жыл бұрын
kuru72 Strings in C are represented by arrays of characters. There is no specific String datatype. so for strings we have to use character arrays.
@taware786
@taware786 8 жыл бұрын
#include #include int main() { struct studentaddress { char building[25]; int roomno; }; struct studentdata { char name[25]; int rollno; int marks; struct studentaddress addr; }; struct studentdata dee = { "deepak", 50111, 75, "manas", 508 }; printf("name=%s, roll no=%d, marks=%d ", dee.name, dee.rollno, dee.marks); printf("%s ", dee.addr.building); printf("%d ", dee.addr.roomno); return (0); }
@theanger5930
@theanger5930 5 жыл бұрын
Good job!
@LearningLad
@LearningLad 5 жыл бұрын
thank you :)
@taware786
@taware786 8 жыл бұрын
thanks............
@LearningLad
@LearningLad 8 жыл бұрын
pleasure :)
@71GA
@71GA 4 жыл бұрын
When are you going to holidays this summer?
@ahmadsolehin93
@ahmadsolehin93 11 жыл бұрын
thx!
@srinijavobugari800
@srinijavobugari800 8 жыл бұрын
can't it be : anil.addr.sn="mg road" instead of using strcpy function?
@taware786
@taware786 8 жыл бұрын
#include #include int main() { struct studentaddress { char building[25]; int roomno; }; struct studentdata { char name[25]; int rollno; int marks; struct studentaddress addr; }; struct studentdata dee = { "deepak", 50111, 75, "manas", 508 }; printf("name=%s, roll no=%d, marks=%d ", dee.name, dee.rollno, dee.marks); printf("%s ", dee.addr.building); printf("%d ", dee.addr.roomno); return (0); }
@simbu239
@simbu239 5 жыл бұрын
my program crashes when i use the above code. it shows process returned -1073741819
@PsSarvna
@PsSarvna 7 жыл бұрын
I think using char sn[]; and char hn[] is simple instead of using this
@kithinjimuriungi8811
@kithinjimuriungi8811 9 жыл бұрын
all the way to tutorial 111
@atifahmad5001
@atifahmad5001 7 жыл бұрын
where's 50.
@LearningLad
@LearningLad 7 жыл бұрын
it is there in the playlist.
@whenthethebeansstrikeback6728
@whenthethebeansstrikeback6728 4 жыл бұрын
heheh, anil
Most Asked Important Example Programs in C Language for Beginners
1:22:57
Pointers in C Programming Language Video Tutorial for Beginners
12:34
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 137 МЛН
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 50 МЛН
Structures in C Programming Language Video Tutorial
7:37
LearningLad
Рет қаралды 85 М.
Variables, Data types, and Constants in C programming
10:03
Array of Structures in C Programming Language Video tutorial
7:15
Pass By Reference in C Programming Language Video Tutorials
8:33