+ 1
Why do not print this data type
I have print int, char, double, float. But why do not print boolean and pointer data type. How many memory allocate use of sizeof () function.
3 ответов
+ 3
//if you are having trouble with code then visit this lesson, here is 📊 chart showing all size of operators
//Please put a relevant tag in your question
https://www.sololearn.com/learn/CPlusPlus/1633/?ref=app
+ 2
I guess you're talking about this code? Use _Bool for booleans or #include <stdbool.h> to be able to use the macro "bool". For pointers, try void* or any other type (size will be the same for each type of pointer)
https://code.sololearn.com/c6lm67t7KVGE/?ref=app
+ 1
Thanx now my dought clear