memory tag

20 questions


1 answers
69 views
0
I have a question about register keyword of C

What does the register keyword do?I know it's related to optimization, but there's nothing that says exactly what function it does.

2 years ago

1 answers
89 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
113 views
0
What is the reason for the memory leak?

I built the code below and checked it using the valgrind, and the memory leak occurred.What's the reason?str = NULL; I think that's what's causing the problem.int main () { char *str; /* /* Initial me...

2 years ago

2 answers
110 views
0
What is the difference between the constant and the heap regions in Java?

If declared as below, it is stored in the constant area. String str1 = hello;String str2 = hello;If you declare it as below, it will be stored in the heap area. String str3 = new String(hello);String ...

2 years ago

1 answers
116 views
0
Can I transfer data to USB with ATmega128?

I am a student attending Polytechnic University.I'm going to make a smart piggy bank with my graduation workI'd like to transfer the data in the piggy bank to USB and save it. Is it possible?

2 years ago

1 answers
71 views
0
Which is faster, stack allocation or heap allocation?

I think the stack is faster. But she's not a friendin my experienceIt takes different time depending on the situationI didn't do that when I used the stackWhich is faster, stack allocation or heap all...


1 answers
53 views
0
I have a question about the size of the C array

How do I figure out how many elements can fit in an array in C?I want to know the maximum possible elements, not the size of the array.

2 years ago

1 answers
142 views
0
Can I save the Android recording and click the button to play it?

in a pictureWhen you press the record button in the left activity, it is recorded and saved as a.3gpp on the sd card.Then I want to play the file a that I saved when I pressed the button in the activi...


1 answers
116 views
0
How to determine CPU/memory consumption within a process

Is there a way to figure out the contents below while running the application?My code runs on Windows and Linux.I can't get the exact information, so I'm asking here.

2 years ago

1 answers
69 views
0
Python tkinter memory leak problem.

import tracemalloctracemalloc.start(10)snap1 = [] #Check initial valuedef test(): if not snap1: snap1 = tracemalloc.take_snapshot() else: lines = [] top_stats = tracemalloc.take_snapshot().compare_...

2 years ago
« - 2 -

© 2024 OneMinuteCode. All rights reserved.