Questions tagged as 'c'

2
answers

Save and Load struct C

I'll be back with another question because I've been doing it all day, I want to store the struct data in a file, but I get an error. Before putting the code I explain that I have the variable contador , which is where I store every...
asked by 15.04.2017 / 21:39
1
answer

Problem with pointers and printf

The following error is marked in the part that shows the file found (in case it is found) 'apnom' has not been declared I do not understand if you tell me because I'm making some mistake in the function struct alumnos * buscaleg (struct...
asked by 31.01.2017 / 18:07
1
answer

How can I separate a char vector?

Hello I need to do as a search engine where the user enters a word "caramel" and then enters the letter "the" should print the words you are looking for "candy" The problem is that the user must enter "caramel" and I do not know how to do tha...
asked by 16.01.2017 / 14:10
1
answer

Convert binaries to ASCII character in C [closed]

Can someone help me with a program written in C to convert a string of binaries into a string of ASCII characters? I have already received a very good response but there are no other suggestions. Thank you very much in advance. Greetings     
asked by 10.03.2017 / 21:21
2
answers

Constant pointer to struct volatile

In my implementation, I use a pointer to a struct that can be modified at any time from my code ; I want that, from the exterior of my code, that pointer can be accessed, but only for reading (to be able to use it in certain func...
asked by 16.12.2016 / 11:59
1
answer

How to install GCC and G ++ in GNU / Linux?

My question is: how to install gcc and g ++ in GNU / Linux (ubuntu) I would like to know the installation command specifically, and the installation step by step. : D     
asked by 09.11.2016 / 20:08
1
answer

Interpret float as unsigned int

Can anyone explain why interpreting a float as an integer as I understand would be lost data, is a C casting valid? float sqrt7(float x) { unsigned int i = *(unsigned int*) &x; i += 127 << 23; i >>= 1; return *(fl...
asked by 01.11.2016 / 15:33
1
answer

How to delete a record from a file in C?

I'm doing a practice with binary files in C, it's a Contacts directory in which you can save, show and delete contacts. I have made the functions but at the time of deleting a contact what I do is ask the user to enter the name of the contact to...
asked by 05.07.2016 / 17:23
1
answer

How to extract a string inside a string in c? [closed]

I have the following string: char url[]="table=peliculas/&name=lo_que_sea.pdf" I want to store "what_that_is_.pdf" in a variable like that text would be different from my string ????     
asked by 15.12.2018 / 17:16
2
answers

Indefinite behavior from operators

Good morning, I am doing a program in C where I need to execute the following block of code: uint8_t local_index=0; uint8_t buffer_start[100]; uint16_t temporal_uint16; temporal_uint16 = (uint16_t) (buffer_start[local_index++] << 8)...
asked by 19.10.2016 / 22:50