20 questions
What does the register keyword do?I know it's related to optimization, but there's nothing that says exactly what function it does.
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...
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 ...
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?
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...
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.
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...
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.
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 - |
© 2024 OneMinuteCode. All rights reserved.