Questions tagged as 'c'

1
answer

Difference between void and void * [duplicate]

What is the difference between void * and void as a return type of a function ? Example 1: void *func_nome(int param){ ... } Example 2: void func_nome(int param){ ... }     
asked by 13.10.2016 / 16:41
2
answers

Where to use accumulators in an odd and even evaluation algorithm?

Where should I fit the accumulators of this code I wrote for now? #include <stdio.h> int main() { int N; int somapar; int somaimpar; do{ printf("\n Digite um número qualq...
asked by 13.10.2016 / 21:17
1
answer

Percentage in C

Given the following statement:    Write an algorithm to show on the screen whether each N number, typed   by the user is even or odd. The algorithm should also show on the screen   the sum of all even numbers, the sum of all odd numbers,   th...
asked by 14.10.2016 / 17:18
1
answer

Doubts about Cesar's figure

The problem is that I need to stop printing when it reaches the last digit of the vector, but I do not know how to do it, and also how do I print after the z, because the way I did it, it did not print? (I'm a beginner so if you can explain how...
asked by 05.10.2016 / 19:32
1
answer

Chained list without head, problem in intersection function

I am doing a series of functions with list headless, but a function called Intersection is not working correctly, the problem compiles without errors but this function specifically does not run and the program presents runtime error, in that fun...
asked by 26.10.2016 / 17:08
1
answer

Word with reverse order

I'm doing an exercise where I have to do the given word with input exit in reverse order. I start by counting the number of letters that have the word entered (commented in the code). After having counted the number of letters in the word I...
asked by 22.12.2016 / 01:43
1
answer

Count the lines of a txt file in c / c ++

In the class of files, the teacher used " EOF " to determine if the file had reached its end, but reading the FEOF ", does the two terminologies work? I tried to implement the algorithm that came with this here or this to perform...
asked by 26.11.2016 / 01:52
1
answer

Compile error with struct

When trying to compile I am facing the following error: ..: error: storage size of 'PPFila' isn't known ..: error: storage size of 'AUTFila' isn't known In this line of code struct Fila PPFila, AUTFila; The struct Queue is bein...
asked by 26.07.2016 / 20:59
1
answer

Exercise URI 1005: Correction of C code (simple mean)

QUESTION: When I started my code in the URI, it returned " Wrong answer (60%)" . Below are the description of the exercise and the code entered. What's missing? What code? Mycode:doubleA,B,MEDIA;do{scanf("%lf", &A); }while(A<0 |...
asked by 12.08.2016 / 21:34
1
answer

Output from the highest value of the array going out incorrectly

The code does not print the highest value of the array entered by the user #include<stdio.h> #include<locale.h> int main(void){ setlocale(LC_ALL, ""); int n, m, o=0, posic, posic1; int matriz[n][m]; int lin, col,...
asked by 10.06.2016 / 19:38