Questions tagged as 'c'

1
answer

Write list in binary file

The idea of this method is to write all words from a list of nodes in a binary file. I have a linked list of nodes, where each node has two information, its information, and a reference to the next node in the list. The idea is to write the info...
asked by 26.11.2015 / 11:51
3
answers

How to access a pointer inside a structure?

I need to know how to access the first position of the vector of pointers * c_parte_real, as shown below: typedef struct{ struct char_vector{ char *c_parte_real[2], *c_parte_imag[2]; }c_vector; struct int_vector{ int *i_...
asked by 19.12.2016 / 02:34
2
answers

How to find the dividers of a number quickly

I have to ask a question that calculates the very large and precise number dividers in a quick way without being the conventional way, could they help me My code #include<stdio.h> int main() { int num=19000,i,c=0; for(i=1;i<=nu...
asked by 26.05.2018 / 02:45
2
answers

Java Fork / Join Does it work just like the C fork?

Discussing with a friend about a matrix calculation solution we are developing, the following question came up. Does the Java Fork / Join Framework work just like C? Reading a little, I could not understand C's work very well. Could anyone...
asked by 22.10.2015 / 15:24
2
answers

Doubt - Logic of numbers that change places

I'm trying to put together an algorithm in C to find integers that change places by multiplying by another. I did not find problems like this on the internet, I do not even know if I can do this with integers. But a brief example with fractio...
asked by 04.06.2015 / 16:52
1
answer

Logic of these operations bit by bit

I've already had a good time getting started in the emulator world, I decided to stop trying to make an emulator of a complex system and start with a very basic, emulator of CHIP-8, which is what many indicate in forums of emulation. Well let's...
asked by 18.06.2018 / 14:16
4
answers

How not to repeat terms in printf

I have another problem. My activity this time is to create and read the elements of two vectors, A and B, with 5 and 7 values, respectively. Then the program will show you what elements are repeated. Here's the code: #include <stdio.h> #...
asked by 19.12.2014 / 01:56
1
answer

C struct pointer

What happens is the following, inside the ins_ult() function I can change the value of root->data , but outside the function the value remains NULL . Am I passing the parameter wrongly or using malloc incorrectly?...
asked by 21.08.2014 / 02:28
4
answers

How to delete file or folder in C Language

How to delete a file or folder by code in c language, I already tried to use the remove(pt); method but it did not work, I tried using DOS commands and it did not work either.     
asked by 17.02.2017 / 20:56
1
answer

"Output" with special characters

I'm using the GCC version 5.3 compiler for the following program, written in Aptana: #include <stdio.h> void main(void) { int positivo = 32767; int negativo = -32768; printf("%d +1 é %d\n", positivo, positivo+1); printf...
asked by 05.12.2016 / 23:51