Is it possible to loop through a structure comparing the data type and and allocate it to another data of another structure ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is it possible to loop through a structure comparing the data type and and allocate it to another data of another structure ?

29th Nov 2016, 8:23 PM
E.K AUTRON
E.K AUTRON - avatar
2 Answers
+ 2
just use assignment , to assign 2 structures of the same type PS : c++ doesn't have runtime type checking , so you cannot check the variable's types
30th Nov 2016, 8:44 AM
mekacher anis
mekacher anis - avatar
+ 1
how about C
4th Jan 2017, 12:56 PM
E.K AUTRON
E.K AUTRON - avatar