Questions tagged as 'c'

2
answers

A doubt of hexadecimal and c

The exercise that is proposed to do in C is as follows: More or less the approach is clear to me the table represents the values of tab [] in hexadecimal and on the right its expression in ASCII, as it tells us to do it according to the...
asked by 22.07.2017 / 03:20
1
answer

Read file .txt and enter data read in variables

I had a question about how to read a text file in which the data come one in each line and enter them in the variables that I want. Let me explain: #include <stdio.h> int main() { char fichero[100], nombre[100], apellido[100]; int e...
asked by 28.04.2017 / 13:06
2
answers

Use of ampersand & in c to save value in variables

In this code printf("ingrese el numero a guardar"); scanf("%i",&a); What is the function of the aspersand (&) when saving the value and what is its name?     
asked by 02.04.2017 / 04:15
3
answers

Determinant of a 3x3 matrix

Hello good night I have a question about how to do the operation to obtain the result of a 3x3 determinant, I have been looking for ideas on how to put it in my code but I can not understand it: /, until now I only have the matrix printed, I jus...
asked by 03.08.2018 / 03:20
1
answer

strtok of tabulator with 4 spaces C

I'm trying to parse a document, in which each line has strings separated by tabs (each tab > are 4 blank spaces), but when it comes to making a strtok I am not being able to recognize those blank spaces. This is the code snippe...
asked by 21.12.2018 / 12:57
1
answer

Dimensions of the puzzle

Link to the exercise in question Example entry 1000 2000 500 Sample output 40 25 50 40 25 20 The code works correctly, but when it comes to telling you that the puzzle has 64 pieces, it takes me out 9 8, should not I...
asked by 22.12.2017 / 17:47
1
answer

Multiply matrix by array in c

I am trying to multiply an array of random numbers by an array of random numbers and I get the following error:    invalid operands to binary * (have 'int *' and 'int') I do not understand where the error comes from since I'm not using po...
asked by 02.11.2017 / 14:49
1
answer

Linking multiple files

I was doing tests with a couple of files that are planned to be an attempt of script that can be started in bootloader . In principle to link between the 2 files that made the executable ( kernel.c and loader.asm ) wit...
asked by 29.07.2017 / 13:30
1
answer

Variable arrangement in C

I have made a code in which I indicate the amount of values that my arrangement will have, it introduces them well but then it does not visualize anything to me. I do not know where the fault is, I think I'm giving back something wrong. Code:...
asked by 28.08.2017 / 20:30
1
answer

List active network cards in linux with C

What I'm missing and I do not really know how to do it is list which network cards are active, get the names (example: eth0, eth1), I have a program that already gets the mac and occupies the validation of the eth0 card , but my question is how...
asked by 25.11.2016 / 20:02