Questions tagged as 'c'

0
answers

Overflow in unsigned long int - C

The unsigned long int stores a maximum value of 4294967295 (2 ^ 32 - 1) while the float value stores a maximum of 10 ^ 38. I'm doing an overflow test on an unsigned long int variable. Look at the code below, please. The function below is a...
asked by 24.08.2018 / 18:57
0
answers

How to properly connect the bluetooth server in C to Android?

I'm trying to connect an application between the computer and an android application. The app will be the client and the computer will be the server. Using BlueZ (C library for bluetooth on linux) for server: #include <stdio.h> #inclu...
asked by 22.08.2018 / 20:50
0
answers

Program does not execute the two For loops inside the if - C [closed]

I have 2 links in an if , as shown below: if (grid[j][k] == words[i][0]){ int el = j, col = k; //Metodo direita, baixo for(l=0;l < wordlen(search_word);l++){...
asked by 20.09.2018 / 01:58
0
answers

conditionals within the if? [duplicate]

I do not know if I'm crazy kkkk but I think I remember seeing simple conditionals inside printf. but I can not remember how. tipl, it does the same thing as this: if (xxx) printf("xxx"); else printf("YYY"); Only everything in the...
asked by 15.08.2018 / 16:58
0
answers

Logic on the recursion return [closed]

Hello folks I am studying binary search tree and recursion is very used in this kind of data. I have a question, for example, I did the following function to search for an element in the tree: int busca_Abb(Abb* r, int busca) { if(r ==...
asked by 01.09.2018 / 04:51
2
answers

Sum of numbers from right to left [closed]

I need to sum the digits of a number entered by the user. For example: If the input equal to 20, make 2 + 0 = 2 If the input equals 45, make 4 + 5 = 9 VisualG and C can be used.     
asked by 20.07.2018 / 16:17
1
answer

Saving a linked list

Hello, I have some doubts that I will illustrate below: Having two doubly-linked lists A and B with the structure struct lista { Ponto* dado; /* dado = número */ struct lista *prox; /* ponteiro para o proximo element...
asked by 10.07.2018 / 19:30
0
answers

python sigint and ctrl c have different effects

Hello, I need to run an executable made in c, this executable executes operations on a board and writes to a file, the problem is that the write event occurs when the program receives a ctrl + c. I tried to send a sigint (as far as I know they ar...
asked by 06.07.2018 / 01:25
1
answer

Error: conflicting types for 'firstPerson'

I made a function where I pass as argument two integers and two pointers of two struct that I created in order to write the return in a txt file. When running the program, if I give printf() to the return of the function in main it...
asked by 21.06.2018 / 21:10
1
answer

How do I store data in a struct and then use it in different functions?

I'm trying to schedule this work for days and I can not get out of the corner, it's a library system that needs to be: a) Register, view, change, and remove data from a book; b) Register, view, change and remove new clients; c) Make a ne...
asked by 22.06.2018 / 17:25