Questions tagged as 'ponteiro'

2
answers

Program with Warning and does not accomplish what was requested

Good evening! When I was studying for the test I will do, I faced this question. However, when the program was done, it had a warning and did not perform what I did. I would like you to see my code in order to better understand my error. Thanks...
asked by 31.05.2018 / 23:43
1
answer

I need explanation because the code in C gives a Segmentation fault error

I started my dynamic allocation studies but I can not make a simple example, I could not find the problem. #include <stdio.h> #include <stdlib.h> #define SUCESSO 1 #define FALHA -1 typedef struct { int x; int y; } Ponto;...
asked by 16.06.2018 / 20:35
1
answer

Problem in deallocation of memory

Good evening guys, I've been facing a problem regarding the free () function in the destroy () method for memory deallocation. After inserting values into the binary tree at first, I can even deallocate through the free () function, but after...
asked by 11.05.2018 / 04:56
1
answer

Use C ++ variable in assembly (Arduino)

I've put an interesting code on this page . const uint8_t MachineCode[44] PROGMEM = { 0x25, 0x9A, 0x2D, 0x9A, 0x40, 0xE5, 0x5F, 0xEF, 0x6F, 0xEF, 0x6A, 0x95, 0xF1, 0xF7, 0x5A, 0x95, 0xE1, 0xF7, 0x4A, 0x95, 0xD1, 0xF7, 0x2D, 0x98, 0x40, 0xE5,...
asked by 20.03.2018 / 20:41
1
answer

edges of an array N x N

I would like to know how to set the edge values of an array to -1. I've tried to create an array of N + 2 x N + 2, and do it with a single, go through the edges, but when I put it to print it displays some strange values. I believe you have acce...
asked by 09.02.2018 / 04:17
1
answer

What is this operator **? [duplicate]

What is this ** operator, and what is it for? Every time I come across a piece of code in C ++ with this operator. And if there is a relationship with * , what's the difference?     
asked by 28.12.2017 / 03:47
1
answer

Cast on void pointer

The code below was working as expected, but I changed the info type in the structure List from Retangulo* to void* and tried anyway to cast but continue with the following error: t.c: In function ‘imprimir’: t.c:40:38: warning...
asked by 04.01.2018 / 04:07
2
answers

Definition of Struct in C

Hello, my teacher made the following definition of some structs for a code from a list in data structure, but unfortunately I can not understand the definition of each struct itself. typedef struct{ int Chave; }TipoItem; typedef struct Tip...
asked by 06.12.2017 / 01:59
1
answer

Passing array to function by reference

Good morning everyone, I want in my code to leave the Main (); only with function call, all work is divided into small functions in the document. I want to write an array [3] [3] in a function and organize and print it in other distinct funct...
asked by 20.12.2017 / 13:18
1
answer

How to transform into a lowercase a value of a struct?

The next function should turn variables into lowercase and then compare them. I've tried converting before, but also bugou . Arithmetic use of pointers next to variables of struct . Pointer points to struct . How to fix the error...
asked by 02.11.2017 / 04:01