Most voted "void" questions
15 questions
Sort by count of
-
33
votes4
answers41801
views -
14
votes2
answers2762
viewsWhat is the purpose of the void parameter in functions in the C language?
The parameter void it’s just semantic or he does something I don’t know? int main() { return 0; } int main(void) { return 0; }
-
8
votes1
answer140
viewsFunction to void pointer conversion*
Recently, I was trying to solve a problem in a program of mine in C and, by chance, I came across some answers from Stack Overflow in English which stated that converting a pointer to a function to…
-
2
votes1
answer461
viewsIn java, a Void that sums, returns value?
My doubt is about what exactly is a java return. Because I think the sum answer would be a kind of return, this is correct? void soma (int a, int b) { int s = a + b; System.out.println (s); }…
-
2
votes1
answer1245
viewsHow to handle Null records? In the database or app? (java & Mysql)
I am integrating a legacy database (Mysql) with a new module (Java - this problem object is a bean) that I am developing. I have a method that makes a select and returns some results that eventually…
-
2
votes2
answers178
viewsHow to create events in a for repeat structure?
My question is the following, I am developing a program (I am beginner) in C#. The part I wanted to improve on is the following: I’m wanting to create different events in a for structure. For…
-
1
votes1
answer134
viewsA generic vector only works with pointers? Why?
Hello, I know it works: typedef struct stack TStack; struct stack { int size; int top; void **S; // <------ vai apontar para um vetor de ponteiros // tipo void*, que pode ser de qualquer tipo };…
-
1
votes3
answers2177
viewsDifference between a return and no return method
What is the difference between a method with return and another without return? Since a method with no return could be just the sum of two numbers, I still have the result of this sum.
-
0
votes1
answer265
viewsOutput of a void function
I’m programming a word hunt and a problem in the void function is making it difficult. In the code I use functions to scan the matrix in all directions and returns me the initial and final…
-
0
votes1
answer211
viewsCast in void pointer
The code below was working as expected, but changed the type of info in the structure Retangulo* for void* and tried to cast anyway but I continue with the following mistake: t.c: In function…
-
0
votes1
answer621
viewsVoid pointer in C
Write a program in C that reads 2 numbers (integer or real) and prints their sum. The user informs what type of data will be entered. Note: Use only pointers and dynamic memory allocation to solve…
-
0
votes0
answers16
viewsWhat’s the difference between void and nothing in the parameter?
What’s the difference between: #include <stdio.h> int main(){ printf("hello world\n") return 0; } and #include <stdio.h> int main(void){ printf("hello world\n") return 0; } It’s just…
-
0
votes0
answers17
viewsWhat is the "void" in c++?
I’m studying this new language in the data structure of my college. So far I’ve only programmed in Python and this is my first contact with C++, which would be this type void?
-
0
votes1
answer53
viewsWhy are you returning "Invalid Position"?
When I type 3, instead of asking for the Position I want to enter, it returns 'Invalid Option'. Could anyone tell me why? Follow the code: #include<stdio.h> #include<stdlib.h> int…
-
-1
votes1
answer129
views