sizeof tag

8 questions


1 answers
152 views
0
Is there a way to determine the size of the object in Python?

In C/C++, I found out by using sizeof()I wonder if Python has a similar function. I am writing an XML file that determines the size of the value by the size of the fieldYou should always check the fie...


1 answers
121 views
0
Does C know how to "free" free?

It's possible to point at each type of pointerWho tells me how many pointers to write in an array should be released when memory is released?When you hand over an array to a function, you hand over th...

1 years ago

1 answers
117 views
0
[Java] A function that displays the size of a variable, such as sizeof

In C language, there is a function called sizeof as a function to check the size of a variable.Is there any function or class in Java that acts like size of C?If not, is there any way to print out the...

1 years ago

1 answers
97 views
0
c Functional problem of calculating the length of an array using language sizeof operation

Hello, everyone I am a student studying C language.While solving the problem of creating a function that sorts the integers of an array in descending order, obtaining the length of the array from a fu...

1 years ago

1 answers
85 views
0
Is the size of the pointer always 4?

On my computer,sizeof(char*) = 4sizeof(int*) = 4sizeof(long long*) = 4Then does the pointer size have to be 4?

1 years ago

1 answers
102 views
0
Why is the size of the structure different from the total size of the member variable?

Looking at it, the structure size is larger than the combined size of the member variables. Why is it like this?

1 years ago

1 answers
89 views
0
sizeof(x++) does not increase x

I thought x would increase to 6 if I run the code below, so 4 and 6 would come outWhen I printed it out as dev c++ in the window, 4 and 5 came out.Why is the x value still 5 when sizeof(x++) increased...

1 years ago

1 answers
71 views
0
'A' Byte Count Question

#define _CRT_SECURE_NO_WARNINGS #include <stdio.h>int main(){ int size; int num1 = 10; double num2 = 0X18; long double num3 = 17.1e-3; double num4 = 3.14; char num5 = 'A'; double num6 = 3.14F; p...

1 years ago

© 2024 OneMinuteCode. All rights reserved.