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){
...
}
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...
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...
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...
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...
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...
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...
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...
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 |...
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,...