eof tag

11 questions


1 answers
167 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
135 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...

2 years ago

1 answers
131 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...

2 years ago

1 answers
110 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...

2 years ago

1 answers
156 views
0
Instanceof and Class.isAssignableFrom(…)What's the difference?

a instance of B Me B.class.isAssignableFrom(a.getClass())The difference I know in is that if a is null, instanceof returns false, and isAssignableFrom drops exception. Other than that, are they all th...

2 years ago

1 answers
115 views
0
Find the class name from the instance

Is there a way to find out the class name of the instance in Python?I thought I could use the inspect module, but I couldn't find it.


1 answers
96 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?

2 years ago

1 answers
117 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?

2 years ago

1 answers
102 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...

2 years ago

1 answers
47 views
0
Python open source error question

import requests,sys,time,os, argparsedef main(): os.system(clear)parser = argparse.ArgumentParser()parser.add_argument('-d', help='path to file of domain list', nargs=1, dest='domain', required=True)p...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.