c tag

1304 questions


1 answers
128 views
0
This is a question about language C return.

int gt(long x, long y){ return x > y;}It's a function of what you doHow can it be used in the main function?If x is larger than y... (what?) Return... I don't know what that is (Crying)

2 years ago

2 answers
30 views
0
Question by C language.

As standard input, an alphabetic string of 30 or less length containing spaces is entered (several spaces may be contiguous). Create a program that outputs 1 if the entered string is a return statemen...

c
2 years ago

1 answers
44 views
0
c. Question for receiving files in a two-dimensional array of languages

#define _CRT_SECURE_NO_WARNINGS   #include <stdio.h>#include <string.h>#include <stdlib.h>#define w 5#define h 16pt_buffer(char buffer[w][h])//array output function{ int i = 0; while...

c
2 years ago

1 answers
43 views
0
c Language structure access violation..

It's simply a code that creates a structure and receives a value.I don't know why access violations occur#include <stdio.h>#include <string.h>#include <stdlib.h>#define MAX_STACK_SIZ...

c
2 years ago

1 answers
47 views
0
cInitialize language string multiple times

I wrote down the source code as below, a: Override. I reset it several timesThere is an error like this. How do I initialize a string multiple times in c language?int main(void){ char a[10] = hello; p...

2 years ago

1 answers
98 views
0
It's a C language array question

int array1[100]int array2[100]When there are two arrays like thisWhy does a compilation error occur when you do array1 = array2 in the large number sentence?What should I do to make it normal without ...

2 years ago

1 answers
44 views
0
There is an error in the process of storing the file input/output in the structure after receiving the formatting using fscanf.

Creating a program that stores and displays the information contained in grads.txt in the structure. I wrote it as below, but there is a semi-fault error or an infinite loop. To be honest, I have no i...

c
2 years ago

1 answers
85 views
0
I have a question in C language typeef and function pointer.

Hello, I'm asking you a question because there are parts in grammar that I don't understand well while studying the data structure.typedef void VisitFuncPtr(BTData data);void InorderTraverse (BTreeNod...

2 years ago

1 answers
43 views
0
Quick alignment using real numbers (C language)

#include <stdio.h>#include <stdlib.h> //Call random functionsvoidSwap (doublearr[], inta, intb) // a,b swap function { double temp = arr[a]; arr[a] = arr[b]; arr[b] = temp;}int Partition(d...

2 years ago

1 answers
32 views
0
Hello, I am a student who is learning C language. I'm asking you a question regarding the code.

#include <stdio.h>#include <stdlib.h>#define WIDTH 512#define HEIGHT 512 // WIDTH, defined as 512 for each HEIGHTTypeef unsigned char BYTE; // Express unsigned char as BYTE int main(){ FLE...

2 years ago
« - 71 - »

© 2024 OneMinuteCode. All rights reserved.