Questions tagged as 'c'

1
answer

I miss Android Studio [closed]

Yesterday android studio asked me for an update then I installed it and since then it does not want to work, when launching the application to the emulator the buttons or edit text are placed in the upper left together     
asked by 20.04.2017 / 19:40
1
answer

Doubt with the internal structure of sockaddr_in

Hi, I'm studying sockets in C and I found myself in doubt about this structure: struct sockaddr_in { short int sin_family; unsigned short int sin_port; struct in_addr sin_addr; unsigned char sin_zero[8]; }...
asked by 11.03.2017 / 01:27
2
answers

Problem with Pointers

I'm doing a simple exercise where I have to enter two integers and calculate different operations using functions. The question is that he asks me for these two prototypes of functions: int * multi (int, int); int * resta (int, int); I h...
asked by 30.01.2017 / 23:15
1
answer

Why is not the memory address of a string assigned to a pointer?

What I want to do is to return the memory address of the CADE string that I generate in the function and assign it to the CHAIN pointer. But when I execute it, I mark the following error and try to solve it but it still does not work. ERROR: inv...
asked by 30.01.2017 / 19:41
1
answer

Help with the error: "incompatible types in assignment of 'char' to 'char [1000]"'

What I want to do in this program is that the user enters a character that he wants to replace and the character with which he wants to replace it. I do not know if the function is right where I make the modification, but the issue is the error...
asked by 02.02.2017 / 14:23
3
answers

What is a char data? a char data can be a numerical value? [closed]

What is char data, is that I do not know if I can give a number as a value.     
asked by 01.05.2017 / 16:06
1
answer

problem with argv in c

I'm writing a program to go through one of the arguments and store them in a variable, but I get a segmentation error right in this loop: for(int i=0; argv[1][i] != " for(int i=0; argv[1][i] != "%pre%" ;i++){ } " ;i++){ } How else...
asked by 02.05.2017 / 19:25
1
answer

Malloc and wcscpy: HEAP CORRUPTION DETECTED

I'm trying to create and use a pointer to a string and join it with another reserved string pointer with malloc , but I always get this error message: This is the code: int wmain(int argc, WCHAR *argv[]) { LPWSTR str1 = L"So...
asked by 09.11.2016 / 22:38
3
answers

Why is the value of 0 being printed?

Hello, I have the following code in C #include <stdio.h> void main(void) { int num, cociente, a, b, c, d; printf ("Evaluación de expresiones\n\n"); a = 10; b = 4; c = 5; d = 1; num = 0; cociente = (num = a*b)/(num + c +...
asked by 06.02.2017 / 23:51
3
answers

Help Structura and Vector in C, Simple program of Students and Notes

How to make a vector? In what way do you do not go putting nota1;nota2;nota3;etc ? I made 2 codes, but they do not work for me. How to do with the theme of the average? 1) Enter the data of the students of an establishment consisting of...
asked by 26.10.2016 / 04:13