Questions tagged as 'void'

3
answers

What is the purpose of void in C?

I have questions about using void in functions. 1 ° Example: int somaV(int valor_1, int valor_2) { return valor_1 + valor_2; } I know that this function will return an integer which is the sum of the two parameters in the func...
asked by 09.11.2015 / 15:54
2
answers

What is the purpose of the void function parameter in C language?

Is the void parameter only semantic or does it do anything I do not know? int main() { return 0; } int main(void) { return 0; }     
asked by 04.07.2016 / 03:24
1
answer

In java, a Void that makes a sum, returns value?

My question is what exactly is a return in java. For I think the sum answer would be a kind of return, is that correct? void soma (int a, int b) { int s = a + b; System.out.println (s); }     
asked by 04.10.2017 / 20:31
2
answers

How to create events in a for loop structure?

My question is the following, I'm developing a program (I'm a beginner) in C #. The part I wanted to improve, is this: I'm wanting to create different events in a for structure. For example: public frmSelecaoDeCartas() { InitializeComponen...
asked by 06.10.2017 / 00:38
1
answer

How to handle Null records? In the bank or app? (java & mysql)

I'm integrating a legacy (MySQL) database with a new module (Java - this problem-giving object is a bean) that I'm developing. I have a method that does a select and returns some results that possibly have some null data and thi...
asked by 25.04.2018 / 22:28
1
answer

Output a void function

I'm programming a word hunting and a problems in the void function is making it difficult. In the code I use functions to scan the array in all directions and returns me the start and end coordinates or exit the function and start reading in ano...
asked by 30.09.2016 / 04:22
1
answer

Cast on void pointer

The code below was working as expected, but I changed the info type in the structure List from Retangulo* to void* and tried anyway to cast but continue with the following error: t.c: In function ‘imprimir’: t.c:40:38: warning...
asked by 04.01.2018 / 04:07
1
answer

Pointers in C language

I created a simple code with the function void where there is a passage by reference. However, it is giving the following error at compile time:    lala.c: In function 'main':       lala.c: 19: 12: warning: passing argument 2 of 'test...
asked by 24.10.2018 / 04:16