Cursos
Cursos
Code Compiler
Code Compiler
Discussรฃo
Preรงos
Equipas
Iniciar sessรฃo
Registar
Menu
Discussรตes Q&A
Pesquisar
Pesquisar
Fazer uma pergunta
Fazer uma pergunta
Public class Exceptions {public static void main(String[] args) {try {if (args.length == 0) return;System.out.println(args[0]);}
java
1 Voto
3 Respostas
28th Jun 2017, 2:01 AM
Sandeep Jena
What is the difference in using void main() and int main() functions??
beginners
c++
0 Voto
3 Respostas
18th Feb 2018, 5:42 PM
Srikumar K
What does the "(string[] args)" mean in "static void main (string[] args)"?
methods
staticvoid
string[]args
0 Voto
1 Resposta
5th Oct 2020, 5:29 PM
Fathiat Abdul-Quadri
What is the output of this? Void main(){ char a[10]="walk"; printf(%d,printf(a)); getch();}
c
0 Voto
2 Respostas
18th Mar 2019, 4:06 AM
Archana
Why we can not use void instead of int to a main function
c++
variables
1 Voto
3 Respostas
21st Mar 2017, 4:51 AM
Rishika Sharma
Can anyone explain me this code? what is this void and this is static?
c
0 Voto
3 Respostas
30th Jun 2020, 2:40 AM
Lucas Rodrigues Caetano
why don't we use "void main" instead of "int main"?
main
void
2 Votos
4 Respostas
6th Mar 2017, 7:11 PM
Tushar
Can we use void main () .... instead of int main ().
c++
0 Voto
3 Respostas
30th Jul 2017, 6:39 AM
DEEPENDU PANDIT
When to use 1 int main() 2 void main() 3 main ()
c#
0 Voto
3 Respostas
3rd Oct 2016, 9:52 AM
Raj shah
how can i perform this substraction operation using void function and string?
c
learning
programming
0 Voto
1 Resposta
26th Apr 2020, 8:21 AM
Aarรณn Alva
In c language if function data type is void and it returns 1, then it will give error or compile successfully
c
return
void
3 Votos
7 Respostas
15th Sep 2020, 4:20 PM
kishor pawar
in c# static void main( string args[]) is not working why?
c#
0 Voto
2 Respostas
2nd Jul 2016, 8:56 AM
soumit
Why can't we use void main instead of int main and return nothing.
c++
functions
1 Voto
3 Respostas
14th Dec 2016, 6:17 PM
Rohin Bardhan
Do you know how to convert this void method to the return method in java?
java
0 Voto
1 Resposta
4th Apr 2023, 1:39 PM
Killiam Chances
Is the state "static void Main " the starting of any code or function ?
c#
output
2 Votos
5 Respostas
14th Nov 2016, 9:21 PM
mido
Function and recursion
int
void
0 Voto
2 Respostas
30th Jan 2025, 2:38 PM
Avinash Kumar Sheel
#define Trigpin 10 #define Echopin 11 #define buzzer 8 void setup(){ pinMode(Trigpin, OUTPUT); pinMode(Echopin, INP
is
python3
what
-2 Votos
6 Respostas
27th Apr 2021, 5:26 PM
Sadik Sadik
void ( * ( * f [ ] ) ( ) ) ( ) mean???
c++
1 Voto
4 Respostas
27th May 2018, 1:07 PM
Maleeha Khalid
Why r u not accepting void main() instead of int main() ?
c++
1 Voto
2 Respostas
15th Dec 2016, 6:29 PM
Hiranmayi
Why does a constructor not cosist of a void?
constructor
void
0 Voto
3 Respostas
8th Dec 2018, 8:00 PM
Mike Willems
In c based on this header how to implement void print_map(map *mp) according to this header?
adt
c
hash_table
hashmap
map_adt
4 Votos
3 Respostas
8th Sep 2019, 5:50 PM
Zhenis Otarbay
Why use void?
c++
functions
void
9 Votos
5 Respostas
21st Jan 2017, 4:50 AM
UnidentifiedProgrammer
why this output only comes 3 and why not output 123? #include<iostream> using namespace std; class A{ public: virtual void f(){cout<<1;} }; class B:public A{ public: void f(){cout<<2;} }; class C:public B{ public: void f(){cout<<3;} }; int main() { B *p=new C; p->f(); }
c++
0 Voto
3 Respostas
24th Aug 2016, 2:21 PM
Lekhraj Singh
What is the difference between void and return data type in JAVA?
explanation
java
return
void
0 Voto
1 Resposta
8th Sep 2018, 3:40 AM
Prince Gupta
ะ ะตะฐะปะธะทัะนัะต ะธ ะฟัะพัะตััะธััะนัะต ััะฝะบัะธั void P2CStr(char *s); ะฒัะฟะพะปะฝััััั ะฟัะตะพะฑัะฐะทะพะฒะฐะฝะธะต ัััะพะบะธ s ะธะท Pascal-ัะพัะผะฐัะฐ ะฒ ัะพัะผะฐั ะก++.
heelp
0 Voto
7 Respostas
23rd Feb 2019, 8:00 AM
Matty
How do we get to know where to use void main and where to use int main
main
void
1 Voto
2 Respostas
25th Mar 2020, 6:54 PM
Palakh Koyalkar
In data types example why void main() is not there? Why int main()?
data-types
0 Voto
2 Respostas
26th Jan 2019, 7:40 AM
hetvi Ashokbhai parikh
When is void main use. And when is int main used... plis help
c++
functions
2 Votos
2 Respostas
29th Nov 2016, 2:40 AM
stephen haokip
How do I allocate memory to the following function pointer: void (*ptr)(int*) = factorial;?
c
2 Votos
1 Resposta
24th May 2022, 7:39 PM
attackhelicopter boi
what is void?
c++
void
1 Voto
4 Respostas
21st Sep 2016, 3:10 PM
Rahul
can't we use void main instead of int main in programs
c++
0 Voto
1 Resposta
10th Oct 2017, 8:51 AM
arshpreet
Why do we preffer writing int main() instead of void main()...?
c
cpp
function
main
return_type
1 Voto
1 Resposta
25th Sep 2017, 5:44 PM
Ankur Pashine
Why my code no run.It's bug in void nhap and no run
c
codeplayground
0 Voto
1 Resposta
4th Apr 2020, 2:35 PM
Nam Le
why would you declare a function that uses parameters over a function that uses void
c++
functions
0 Voto
6 Respostas
28th Feb 2017, 10:43 AM
Osei-Bonsu Kwaku
Why there is no semicolon at the end of the line static void main()
c#
output
2 Votos
3 Respostas
1st Apr 2017, 5:47 AM
Rakesh Chandra Dash
public class program { public static void main(String[] args) { String firstName, lastName; firstName="Mahmudul"; lastNam
fault
1 Voto
5 Respostas
28th Aug 2017, 11:20 AM
Mahmudul Hasan
What is difference printing to screen and returning a value?
java
void
2 Votos
3 Respostas
16th Dec 2017, 4:16 PM
Sad
class Myclass { public static void main(String []args){ System.out.println.("I'm learning java"); } }
i'm
where
wrong
0 Voto
3 Respostas
16th Sep 2017, 3:51 PM
Parvinder Singh
class MyClass { public static void main(String[] args) {System.out.printIn("I am learning Java"); } }
java
0 Voto
2 Respostas
8th Nov 2019, 2:19 PM
Fiamordzi Edzenam
C# void. If void returns nothing then why does it continue to execute the method's statement?
c#
methods
void
0 Voto
4 Respostas
8th Feb 2022, 5:16 AM
Taukoriri Meita
class Calc { char Grade; int Bonus; public: Calc() {Grade=โEโ; Bonus=0; } void Down ( int G ) { Grade - = G; } void Up (
transition
-3 Votos
3 Respostas
31st Oct 2017, 2:21 PM
pankaj kumar
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scann
switch
0 Voto
3 Respostas
20th Sep 2022, 3:22 PM
Senthil
Why not we use void as a main function rather than using int
c++
0 Voto
2 Respostas
26th Jun 2019, 11:43 AM
Manthan
How to call method (with a return type) in another method (with void type) in java
java
0 Voto
4 Respostas
10th Nov 2021, 4:21 PM
Ghaida Alomari
#include <iostream> #include <string> using namespace std; class myClass { public: void setName(string x) {
encapsulation
0 Voto
3 Respostas
21st May 2020, 6:22 PM
Salini Selvam
#include <iostream> using namespace std; void printSomething(int x) { cout << x; } int main() { printSomething(42); }
<b>
1 Voto
4 Respostas
14th Apr 2018, 12:20 PM
TOKOLLO COLLEN
why is void main not suggested to be used in a program ?
c++
0 Voto
3 Respostas
3rd Feb 2017, 1:42 PM
Nehal Choudhury
Hey can anyone tell me why the return statement is giving me void return type??
c
2 Votos
1 Resposta
13th Jan 2022, 1:21 AM
Raisun Lakra
We can't use void main() in c++ right? We should only use int main() right?
c++
in
void
0 Voto
2 Respostas
1st Aug 2019, 5:16 PM
Merlyn J
In C++ do you prefer main() to return a void or an int?
c++
error
functions
programmingpractices
return
value-types
0 Voto
3 Respostas
30th Sep 2017, 3:52 AM
GW III
Fazer uma pergunta
Fazer uma pergunta
Fazer uma pergunta
Fazer uma pergunta
< Anterior
1
...
9
10
11
...
17
Seguinte >
Popular hoje
Certificates
0 Votes
Regarding platform
1 Votes
Machine Learning models โlearnโ kaise karte hain?
0 Votes
How can A.I be used for social media manager ?
0 Votes
How can i make turtle art in sololearn
0 Votes
Inquiry for img code
0 Votes
Music ingame
0 Votes
C language
0 Votes
Iske python mein phishing page kaise banay
0 Votes