Posts by Tiago Matos • 91 points
5 posts
-
1
votes2
answers79
viewsA: Error in C program compatibility between float and float pointer
First, the declaration of your role reverse should be: float* reverse(float* v, int n) Because in it you intend to return something of the pointer type to float, which will indicate the memory…
canswered Tiago Matos 91 -
1
votes1
answer34
viewsA: Socket error in C recv(), send() // SERVER [CLOSED]
The main problem is this: In the call to accept you are passing the third argument incorrectly. This third argument should be the memory address of the variable that stores the size of the struct…
-
3
votes3
answers473
viewsA: Doubt char C pointer
In its code snippet, array is already of a ptr-compatible type. So the error is in using the operator & on the last line. This operator takes the value of the memory address where the array…
-
0
votes4
answers6112
viewsA: VHDL is a programming language?
VHDL is a programming language. Only that it has particularities relative to its objectives, which are simulation and implementation of digital circuits in microelectronics. It is commonly used, as…
vhdlanswered Tiago Matos 91 -
1
votes2
answers2555
viewsA: Program in C to generate terms from a P.G
Because the Pow function works with floating point numbers, a rounding or truncation problem may actually occur. It’s very simple to make an exponentiation function with integers: long potencia(long…
canswered Tiago Matos 91