Questions tagged as 'c'

1
answer

How do I fill a multilist?

I have a list linked to another list in this way: struct lista { int valor; lista *prox; } struct multi { int valor; multi *prox; lista *abajo; }; void insertarcabmulti(multi **cab, int x) { multi...
asked by 24.05.2018 / 17:31
2
answers

while not running

In the following code, the second while is never executed, what is the reason? int main(){ int a,b; int producto=0; int cociente=0; printf ("Escribe primer número.\n"); scanf ("%d", &a); printf ("Escribe se...
asked by 29.05.2018 / 00:44
1
answer

Multiplication of Matrices in C

Hi, I have a Problem with the multiplication of matrices, when I want to multiply a 2x2 by a 2x10, it throws me incorrect values. I appreciate the help ... #include <stdio.h> #include <stdlib.h> // constantes que se aplican a matr...
asked by 18.05.2018 / 05:35
1
answer

Sum of matrices from a text file

Good day! I have to make a program where 2 matrices are added from a file, but I have no idea how to put the codes together. The image shows what I am asked for and in the second program at the time of execution, it does not matter what numbers...
asked by 23.05.2018 / 09:13
1
answer

Create a vector similar to another to create inverse

I have the following exercise:    Only using For - While - If - Switch Case - Vectors - Printf - Scanf - Int - Char       It will work with two vectors, where the length of the vector must be given by the user by keyboard (int longVector). O...
asked by 28.04.2018 / 03:45
1
answer

A task with Array - Vector

I have to do the following: It is requested by console to enter via the keyboard, the user's name, his ID and his year of birth. A patent must be built, in the style of Argentina AB 123 CD. Where the letters A and B must be the first two vowels...
asked by 28.04.2018 / 21:14
1
answer

Array of C pointers [duplicated]

a question I have a doubt if someone can help me. What would be the prototype of a function that receives as parameter an array of pointers? Thank you very much     
asked by 21.04.2018 / 22:44
1
answer

Error calling a function in c

I have the .c file with the function I want to invoke #include <stdio.h> #include <string.h> #include <stdlib.h> #include "entrada_minishell.h" void imprimir_prompt() { printf("minishell> "); fflush(stdout);...
asked by 02.05.2018 / 12:19
1
answer

Read upper triangle of a matrix and print it on the screen

Hola buenas, would like to know why this little program does not work for me. I have to: Read the upper triangle of the matrix and print it on the screen. At the moment I have this, but the problem is that at the time of printing / rea...
asked by 30.03.2018 / 11:41
1
answer

Reading and writing binary files in c with fread-fwrite

I am trying to read and write binary files. I create a matrix in ram memory, then I write it in a binary file. void escribirMatrizParcialmente(double ***A){ FILE *destino; int i,j; if((destino=fopen(ARCHIVOMATRIZ,"wb"))==NU...
asked by 09.04.2018 / 06:03