c tag

1304 questions


2 answers
42 views
0
I didn't know much about ascending programs.

Some of the ascending programs are listed below. void sort (inta[], intn){ inti,j,min,t; i = 0; while(i<n){ min = i; j = i+1; while(j<n){ if(a[j]<a[min]){ min = j; } j = j+1; } t = ...

c
1 years ago

3 answers
131 views
0
Understanding Pointers and Indirect Operators

I don't know why the code below is valid for char str [100] = Hello; not char*str = Hello;I understand that I can only put an address in the pointer, but is that not true?Also, does this mean that Hel...

1 years ago

1 answers
132 views
0
XCTest Does Not Call `setUp`

I am trying to do an XCTest, but neither setUp nor testExample are called in the code below.import XCTestclass HogeTests:XCTestCase{ override funcsetUp(){ // Put setup code here. This method is calle...


2 answers
166 views
0
Why is the bcc32 command not recognized?

It's a C language.Why is bcc32 not recognized (?) at the command prompt, although the image is surrounded by orange?Also, what can I do to improve it?I was a freshman majoring in information technolog...

1 years ago

2 answers
40 views
0
Handling Structure Pointers for Bidirectional Lists

The code below is a program that receives five numbers as input, outputs them as numberlists in the order they are received, and then outputs numberlists in reverse order.I'm not sure if NULL is handl...

c
1 years ago

2 answers
83 views
0
Rails5 Fails/Error When Running Rspec

I am creating a task management application called taskleaf in accordance with the reference book rails5 Quick Learning Exercise Guide, but I have a failure/error error when running Rspec, so I would ...

1 years ago

3 answers
37 views
0
About Macro Functions

I'm studying macro functions.If you execute the following code, you will receive an error.Please tell me the solution.error message error: lvalue required as left operand of assignment # define ABS(x)...

c
1 years ago

1 answers
49 views
0
a program that squares elements

It's a question that was asked in the class assignment.In order to create a procedure sqarray to store the square of element number i in data[i] for an integer array data, I programmed it as follows:/...

c
1 years ago

1 answers
39 views
0
Causes of Segmentation Fault

The code below is a program that stores numbers entered using a bidirectional list in ascending order.void insert() inserts the element pointing to w before the element pointing to p.structure data_t*...

c
1 years ago

2 answers
42 views
0
a program that calculates the sum of two sets

Set A: 0, 2, 4, 6, 8, 10, 12, 14, 16, 18Set B: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9I wanted to create a function that calculated the sum of the two sets of , but I didn't understand the ? part of the main fun...

c
1 years ago
« - 10 - »

© 2024 OneMinuteCode. All rights reserved.