Questions tagged as 'c'

1
answer

What exactly does the getopt () function do? from the library unistd.h? [closed]

What exactly does this function do? and how could I apply it to my code?     
asked by 04.02.2018 / 22:38
0
answers

Help, summation of rows and columns of arrangement in C

I have a two-dimensional arrangement with the rand function in which it adds the total of rows but I do not know how to do it so that it also sums the total of columns in row 16 is where I want to add the total of each column include stdio...
asked by 02.01.2019 / 01:10
1
answer

Send one msgbox per network from one pc to another

What I want to do is pretty basic but I have had difficulties. I want to basically see a poster with a message like a msgbox, on a PC remotely sent from another,    Aspects to consider -These two PCs are clearly in the same network and in...
asked by 15.07.2018 / 04:57
1
answer

atoi and 9223372036854775808 (2 ^ 63)

Testing atoi I have noticed that from 2 ^ 63 returns 0 if the number that should return is negative, and -1 if the number that should return is positive, someone has an idea why?     
asked by 13.11.2017 / 02:31
1
answer

when compiling tells me it stopped working. pointers and vectors

load a vector with 25 elements as maximum, and then to the values of that vector define which are even and odd, save them in two different vectors. #include <stdio.h> #include <stdlib.h> #define N 25 void cargarvector(int vec[N],...
asked by 25.11.2017 / 01:49
1
answer

Save text file data separated by;

My question is how I can raise the data of a txt when they are separated by ; . Example: Nombre;Telefono;nacionalidad Pablo Perez;41414545;Argentino Thank you very much     
asked by 19.03.2018 / 21:29
2
answers

Good, doubt noob real numbers [closed]

Good I wanted to ask how, after having carried out operations with real numbers, for example 100 - 1.5 = 98.5; How could I be left alone with 98?     
asked by 08.06.2018 / 21:53
2
answers

Return a string passed as an argument to a function

I have this code and the problem is that it only prints me one h    Code #include <stdio.h> char imprimir_cadena(const char *cadena2); int main(){ const char *ptr="hola"; const char *p=imprimir_cadena(ptr); printf("%s",...
asked by 08.04.2018 / 21:34
1
answer

how do I do the following problem in c language code?

load two vectors of 8 elements each and in a 3rd vector multiplication. Calculate the average of that vector, generate a function that receives the average value and return the same divided by 2.     
asked by 23.06.2018 / 06:28
1
answer

error: expected identifier or '(' before 'while' [closed]

I recieved an error when executing the following code, where is the error? int I= 0; int J= 0; int M[10][10]; while (I<10) { J= 1; while (J<10) { if (((M[I][J] % 2)==1) and (M[I][J]= M[I][J] * 2)) J= J+2;...
asked by 22.03.2018 / 15:29