c tag

1304 questions


1 answers
28 views
0
I'd like to ask you a multiplicationcrying

'#includetypedef struct{ int degree; float coef[MAX_DEGREE];}polynomial;polynomial poly_product(polynomial A,polynomial B){ int i,j; polynomial C,Tmp; int degree_a=A.degree; int degree_b=B.degree; C.d...

c
2 years ago

1 answers
80 views
0
How do I reverse a C/C++ string using only one buffer?

I know how to use two buffersHow do I reverse a C/C++ string using only one buffer?for(int i=0; i<strlen(s1); i++) s2[strlen(s1)-i-1] = s1[i];

2 years ago

1 answers
43 views
0
(Visual Studio) Appears only on my computer while using Visual Studio.

char *a[] = { Hong Gil-dong, Kim Gil-dong, Lee Gil-dong, Park Gil-dong, Choi Gil-dong};All the other computers up there are working fine, but strangely, I...Hong Gil-dong, Kim Gil-dong, Lee Gil-dong, ...

2 years ago

1 answers
28 views
0
It's a c language program that prints zeros and stars

I wrote it like this *0*00*000*0000*00000*It can be printed up to .y-axis symmetry I want to do it like a picture. What should I do? I'll do the stretch, but I can't do the shrinkage again.Please tell...

c
2 years ago

1 answers
29 views
0
c language getche question

#include <stdio.h> void main(){ char ch; ch = getche(); ch = getche(); ch = getche();}It's an example from a book, and if it comes out like this, it has to end with ABC, but I don't know why bec...

c
2 years ago

1 answers
104 views
0
What is the difference between malloc and calloc?

The method of using both is similar, and the size of the return is the same, but why is there a separate one?I can't tell the difference between the two.

2 years ago

1 answers
70 views
0
What if I don't know the length of the string to be entered in c/c++?

When you say that an input is always entered as a stringI don't know the length of the string to be enteredI need to determine the size of the char array, what should I do?If the size is input first, ...

2 years ago

1 answers
45 views
0
cLanguage problem

It's a language problem Using a two-dimensional integer array, input and output a 3X3 matrix, and create an appropriate function for the first row It's a question to print out after exchanging two lin...

2 years ago

1 answers
40 views
0
cSorted sequentially with language dynamic memory allocation

#include <stdio.h>#include <stdlib.h>#include <string.h>struct student { int id; char name[20]; int score[4]; struct student *next;};int main(){ int count = 0, id,sc[4]; char na...

c
2 years ago

1 answers
44 views
0
What does "%8" mean?

There's a question like thischar z[9];printf(%s, Enter string:);scanf(%8[^aeiou], z);printf(The input was \%s\\n, z);What does %8[aeiou] mean?aeiou>is

c
2 years ago
« - 88 - »

© 2024 OneMinuteCode. All rights reserved.