Questions tagged as 'punteros'

1
answer

How to declare a pointer that contains char pointer address?

The exercise says that last name is an array of pointers to char (char *) and each position contains the memory address of last names. When I declare the data received in the function, I should write char * last names? (which would contain...
asked by 28.10.2017 / 04:23
1
answer

function strstr (from the library string.h) made by me

I made a program that pretends to be the function strstr , of the library string.h . Enter 2 strings per keyboard and the function finds the second string in the first one by returning a pointer (if it does not find it returns NUL...
asked by 07.09.2017 / 23:11
1
answer

multidimensional array pointers

The following code is supposed to order the surnames alphabetically but for some reason it stops, the compiler does not mark any warning, nor error so if someone knows what happens explain to me what happens please #include <stdio.h> #in...
asked by 31.05.2017 / 18:54
1
answer

Segment violation, problem in pointers or dynamic memory?

Good I was trying to practice with vectors with dynamic memory and I got this error when executing: Violación de segmento ('core' generado) The fact is that sometimes it works, so it leaves me a little confused, this is my code: #...
asked by 21.05.2017 / 19:34
1
answer

when one handles pointers does the information double?

When you manage pointers, is the information duplicated or is there some way to create something like hyperlinks? for example: struct Ciudad{ //datos ciudad } struct persona{ Ciudad ciudadOrigen; //otros datos }; H...
asked by 20.08.2018 / 05:39
1
answer

How do arrays work with C pointers?

I was recently given a code in C language to continue developing a new programming language and I found some instructions that caught my attention on how to declare an array and use it, but that I had seen them before. Attached an example of the...
asked by 20.01.2018 / 06:46
1
answer

List linked in C

First I create the list, then I check if it is empty or not, then I pass the values that I want the list to have, but when I print the lists I do not get the values that I passed on to them. How do I print what I'm going through? struct alumno...
asked by 20.11.2016 / 03:27
1
answer

List loop error

The function of bottom of all, extra , does not work correctly, before reaching the first if after while the program closes me. What can be wrong? #include <stdio.h> #include <stdlib.h> #include <string.h>...
asked by 26.04.2018 / 20:29