c tag

1304 questions


2 answers
31 views
0
malloc(sizeof(char)) → Why can I create an array of 10000 elements?

Environment ubuntuRun with clion#include<stdio.h># include <stdlib.h>int main(void){ char*old_string, *new_string; old_string = malloc(sizeof(char))); inti; for(i=0;i<10000;i++){ old_s...

c
2 years ago

3 answers
110 views
0
How to separate operations by area with iBeacon

I would like to install several iBeacons so that when I enter the area of each Beacon, I can do other things (background).I thought it would be possible to change the Major with the same UUID, but wou...

2 years ago

1 answers
30 views
0
I would like to declare a variable for finding an average value in the following program as a pointer to a double type and create it so that the average value is stored directly in the calling variable as well as the minimum and maximum values.

When you call a function and pass arguments, you pass the address of the variable that stores the average value.Integer data are entered in the form of initializing an array in the main function.inta[...

c
2 years ago

2 answers
83 views
0
How to Send Messages by Client in Socket Communication with Multiple Clients

I'm learning how to create a program that can communicate with multiple clients using a socket in C language.After preparing the parent and child sockets using the Fork and pipe functions, we are tryi...

2 years ago

2 answers
41 views
0
I want to add animation to the pie chart.

I am making a pie chart, but I would like to add an animation that changes the value of the graph from the left to the right.What are the options?Gray code CGContextSaveGState(context);CGFloat x = rec...

2 years ago

3 answers
70 views
0
What is the programming language made of? [Closed]

Do you want to improve this question?Edit this post and update the question to focus on one issueClosed 7 years ago.7 years agoWhat is programming language made of?What is that object that you can com...


2 answers
36 views
0
I want to know what the comma operator of define sigaddset(s,n)(*(s)|=(1<<((n)-1)), 0) is doing.

I'm studying C language.I was reading the source code for zsh and there was something I didn't understand.ZSH-THE Z SHELL/*If not a POSIX machine, then we create your* * own POSIX style signal sets fu...

c
2 years ago

1 answers
39 views
0
On iOS, I want to register tasks to be performed in a few hours to a few tens of days, and move the registered tasks even if the application process is turned off.

iOS appI have looked into various items below.However, I couldn't find anything to do what I wanted to do.DispatchQueueI was able to run in the background, but when I turned off the app process, it st...

2 years ago

1 answers
30 views
0
About MISRA-C 2012 Rule 16.7

Rule 16.7 switch statement control expressions must not have a substantial Boolean typeHowever, is the use of constants in the control expression substantial Boolean?Example: #define NUM20switch(NUM){...

c
2 years ago

2 answers
31 views
0
Introduction to Reverse Engineering

About reverse engineering.I'm sorry for the amateurish question, but I'll ask you a question separately.Before that, I am interested in hacking, and I want to be able to debug any OS.In other words, I...

c
2 years ago
« - 40 - »

© 2024 OneMinuteCode. All rights reserved.