c tag

1304 questions


1 answers
339 views
0
Problem of implementing the addition of polynomials using structures

#include <stdio.h>#define MAX(a,b) ((a>b) ? a : b)#define MAX_DEGREE 101typedef struct { int degree; int coef[MAX_DEGREE];} } polynomial;polynomial poly_add(polynomial A, polynomial B) { poly...

1 years ago

1 answers
378 views
0
c Language rhombus output program

I have to print out the diamond as it is on that red square screen, but I can't find a solution. I don't know how to organize the code, so I ask. Please also upload the pictures on the screen. https:/...

c
1 years ago

1 answers
332 views
0
I don't know how to use int&x in the C language header file.

I would like to obtain the minimum value, maximum value, sum, mean, variance, and standard deviation of the array in the source.c file from BigArray.c and forward it to source.c.I understand that you ...

c
1 years ago

1 answers
382 views
0
Java Object Declaration Error Question!

Hello, I'm asking you a question because I'm stuck in an object declaration error while studying Java!#Box.javapublic class Box { int width=0; int height=0; public void printSize() { System.out.print...

1 years ago

1 answers
286 views
0
#define constant declaration

For example, is it wrong to write #defineTAX0.5f like this?

c
1 years ago

1 answers
420 views
0
Memory layouts learned in theory don't work out as expected when actually printed as addresses.

Executing the code below resulted in the following results:As a basic memory layout, if you declare the main function or func function as below and output the address, it will be placed in the stack a...

c
1 years ago

1 answers
292 views
0
I have been thinking about the cpp "char" 1byte send/receive code for a month.crying

Hello, I'm a beginner at Cpp.The code at the bottom is the example code that I referred to. The first code is the code that I modified.참고한 git는 https://github.com/gbmhunter/CppLinuxSerial 입니다.'#define...

c c++
1 years ago

1 answers
310 views
0
I want to get the number of elements from the pointer in the array.

If you receive a pointer pointing to the beginning of a char array as an argument as follows, I would like to know the number of elements of the char array using string_ptr.void hoge(char*string_ptr){...

c
1 years ago

1 answers
352 views
0
Why do you need to put decimal point in the c language to get the result?

Hello. I have a question about c language coding.#include <stdio.h>int main(void){ double c, f; printf(Enter a Fahrenheit value: ); scanf_s(%lf, &f); c = 5.0 / 9.0 * (f - 32.0); // <<...

c
1 years ago

1 answers
314 views
0
I have a question about c language coding.

Hello. I have a question about c language coding.```#include int main(void){ double c, f;printf(Enter a Fahrenheit value: );scanf_s(%lf, &f);*c = 5.0 / 9.0 * (f - 32.0);*printf(C value is %lf degr...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.