Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
can you insert void main instead of int main?
c++
functions
return
0 Votes
6 Answers
23rd Oct 2016, 12:49 PM
koder
Why the return type is void* ,why not int because the function square is returning result which is of int type ?
void
0 Votes
5 Answers
4th Jan 2019, 3:33 AM
Ganesh Moota
what is [] in public static void main(String [] args)?
dhaval
furia
1 Vote
8 Answers
4th Jan 2017, 3:39 PM
Jestoni Zamora Macasohol
difference and usages for void and integer functions?
c++
functions
int
void
1 Vote
3 Answers
27th Jan 2017, 7:28 PM
Mich
Can recusion occur in void data type function?
c++
recursion
0 Votes
2 Answers
28th Apr 2018, 5:12 AM
Jason
Why do we use int main()? Y not void main()?
5 Votes
3 Answers
25th Jul 2017, 9:11 AM
yash Chitty
What is the difference between int main() & Void main() ?
c
int
main
void
4 Votes
7 Answers
12th Jan 2018, 4:41 PM
Satyam Kumar Singh
import java.util.Scanner; public class Program { public static void main(String[] args) { System.out.println("enter y
java
-4 Votes
16 Answers
12th Jan 2022, 7:42 PM
ABHISHEK MANE
When i should use void for a function?
void
2 Votes
2 Answers
22nd Jan 2018, 10:15 PM
Mohammed Abdullsalam
What will happen if we use void instead of int ??
functions
-1 Vote
7 Answers
12th May 2020, 8:33 PM
Arghya Singha
I do not really get "void".
void
1 Vote
5 Answers
22nd Oct 2017, 12:36 PM
Cheerio Bob
Why is this code working only integer type of numbers and no working with float type
void
0 Votes
4 Answers
25th Apr 2019, 6:15 AM
vitalii
Everything is understandable but why did I use return (& result) instead of return result? Pls answer!!!
void
2 Votes
2 Answers
6th May 2020, 11:20 PM
SAzidsukc
Please explain me this code mainly that void remove() ...In void remove there is for loop so how it remove only first element wh
c++
2 Votes
5 Answers
24th Feb 2022, 11:42 AM
Sabnis Ashutosh
Is this declaration correct - void func(int a=7, int b)
c++
0 Votes
5 Answers
1st Feb 2019, 6:38 AM
Shivansh Mathur
#include<stdio.h> void main() { int count=0?2:0?3:4?5:6?1:9; printf("%d", count); }
c
tutorial
1 Vote
2 Answers
14th May 2020, 7:14 AM
Krupang Buddhdev
public static void main(String[] args) is predefined method or user-defined?
java
1 Vote
7 Answers
11th Nov 2016, 7:20 PM
Vaibhav Kharche
Is a void pointer same as a null pointer?
c
void
1 Vote
2 Answers
15th Jun 2020, 5:38 AM
Dipesh Das
Is a method with a void statement like a piggy bank?
methods
return
void
5 Votes
7 Answers
23rd Aug 2017, 9:12 PM
LouLou
What is difference between void main and main?
c++
pointers
0 Votes
3 Answers
4th Sep 2016, 7:23 AM
Dixit Parkhiya
How can void b used insted of int
<iostream>
include
0 Votes
2 Answers
25th Oct 2018, 6:17 AM
Divya
Fill in the blank to declare a method called "hello()". void ()
java
-4 Votes
3 Answers
6th Aug 2018, 8:22 AM
Mohammad Samor
When can we use the type void
c++
0 Votes
2 Answers
3rd Jan 2017, 7:10 PM
Tana
when is void used with a function?
java
0 Votes
2 Answers
19th Oct 2016, 10:12 AM
Anni Ananya
void main() = int main() return0 ?
c++
main
void
0 Votes
2 Answers
19th Oct 2016, 2:27 AM
윤종호
can I use void main() instead of using namespace std
c++
cout
3 Votes
5 Answers
31st Jul 2016, 5:31 AM
Eyuwankg Swankg
Please- how void printInfo() and void printDate() are working here. How variable 'bd' prints date? Can we use cout instead?
c++
classes
printdate
1 Vote
3 Answers
12th Feb 2017, 2:07 PM
Black Temple
functions,arrays
void
0 Votes
3 Answers
5th Jun 2020, 1:51 PM
T.GREESHMA
Confused about difference between Void and Int functions?
c++
cpp
cs
doubt
java
question
0 Votes
3 Answers
12th Nov 2017, 1:45 AM
Jonathan Álex
What do return and void exactly do? And what is their difference?
c++
2 Votes
9 Answers
28th Feb 2019, 11:08 AM
Mike Zande
How delay function work in c++ to move animation and were should i use it
void
2 Votes
2 Answers
11th Feb 2019, 5:08 PM
sumit kamble
Can void main be used in place of int
c++
1 Vote
4 Answers
16th Apr 2017, 5:23 PM
Vishwas Mishra
wether all void method should have a parameters?
java
methods
void
0 Votes
3 Answers
6th Nov 2016, 1:35 PM
Edbert andoyo
Why is void not used in constructor function although it doesn't return any value?
c++
1 Vote
13 Answers
2nd Sep 2021, 6:59 PM
Arun Jamson
How to write void with no arguments
functions
0 Votes
1 Answer
8th Oct 2017, 4:08 PM
Abhijith A Menon
Why does void main() show an error?
c++
functions
main
0 Votes
1 Answer
7th Feb 2017, 5:37 PM
Rudradeep Deb
What is the difference between int main and void main
c++
2 Votes
5 Answers
16th Oct 2017, 4:39 PM
kbharadwajreddy bharat
what is diff. btween void main and int main
c++
2 Votes
3 Answers
15th Aug 2016, 2:35 PM
sherin mathew
Benefits of using void main(), instead of int main()?
c++
main
2 Votes
3 Answers
23rd Sep 2016, 7:47 AM
Hector Sulbaran
Plzz tell me
void
0 Votes
5 Answers
4th Jul 2017, 3:17 PM
Ujjwal_Saxena
Why is it giving error in void main?
c++
main
void
1 Vote
2 Answers
15th Nov 2016, 1:14 PM
Toshi Kudo
why Console.writeline is displayed in void data type
c#
methods
0 Votes
2 Answers
9th Jun 2020, 12:32 PM
Aman Shaikh
Why should we use int main only why not void main
c++
3 Votes
7 Answers
30th May 2017, 5:33 PM
Himanshu Agarwal
What is difference between int main and void main?
c++
0 Votes
4 Answers
28th Nov 2016, 10:39 PM
Mufakkir
difference and usages for void and integer functions?
c++
functions
int
void
1 Vote
2 Answers
27th Jan 2017, 7:28 PM
Mich
Why can't I use void main instead of int main.
c++
cout
2 Votes
4 Answers
16th Aug 2016, 4:48 AM
Amitesh
void methods declared with the final keyword does what?
java
1 Vote
2 Answers
22nd May 2018, 2:21 PM
Moses Katsina
Declare a method called "hello" fill the blank void ()
java
-11 Votes
4 Answers
13th Feb 2017, 5:50 PM
Muruga Prabhu.D
Why we write public static void main(String args[]) in java?
java
1 Vote
3 Answers
13th Jun 2019, 8:49 AM
Nidhi pandey
what happen if I add "main" in "static void sayhello(String name)" as "static void main sayhello(String name)" on the given code
classes
code
java
main
objects
2 Votes
1 Answer
25th May 2020, 2:29 AM
Ray
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
5
6
7
...
17
Next >
Hot today
C pointers
1 Votes
Python
0 Votes
Guys help please
0 Votes
Slicing in python
1 Votes
Python question
1 Votes
Control flow
0 Votes
HTML
0 Votes
Front-end vs Full-stack
1 Votes
Which mobile offline app can I use for HTML
0 Votes
HOW CAN I CREATE A GAME AS BEGINNER
0 Votes