Cours
Cours
Compilateur de code
Compilateur de code
Discuter
Tarification
Ăquipes
Se connecter
S'inscrire
Menu
Discussions Q&R
Chercher
Chercher
Poser une question
Poser une question
Does C get initialised and destroyed everytime the look iterates void display(int* a){for( int I =0;I<5;I++){ int C = a[I];}}
c++
1 Vote
7 RĂ©ponses
27th Jul 2019, 6:01 PM
Mandla Thabethe
#include <stdio.h> void main() { float x = 0.1; if (x == 0.1) printf("Sanfoundry"); else printf("Advanced C Classes"); }
c
c++
2 Votes
3 RĂ©ponses
16th May 2020, 12:56 AM
đ±đđđđđđđ
import Java.Util.Scanner; public class Program { public static void main(String[] args) { Scanner AgeScan = new
java
0 Vote
3 RĂ©ponses
30th Jan 2019, 1:56 PM
Adewusi Abdulgafar
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner
.
-5 Votes
3 RĂ©ponses
15th Jun 2021, 3:47 PM
Priti
When we use void ,and when we use return in function in c ++
c
programming
1 Vote
2 RĂ©ponses
12th Jan 2017, 6:43 PM
Nadeem Qasimy
what is the output? public static void Main (String[] arg) { int a = 5; int b = 5; Console.WriteLine(++a + b++); }
c#
operators
1 Vote
17 RĂ©ponses
25th Jul 2016, 12:37 PM
Evan Sihab
Can we use any other word instead of main in the line: public static void main (String []args) as main is not a keyword?
keywords
main
15 Votes
3 RĂ©ponses
3rd Jul 2020, 6:48 PM
đMiss Angelicđ
why this output is 1 ,why not 2 ? template <class T> void f(T &i){ cout<<1; } template<> void f(const int &i){ cout<<2; } int main (){ int i=8; f(i); }
c++
1 Vote
2 RĂ©ponses
25th Aug 2016, 1:18 PM
Lekhraj Singh
why I can't use void main()....when I am doing program in this app
c++
cout
0 Vote
2 RĂ©ponses
21st Jan 2017, 6:45 AM
Tushar joshi
hey we can use void main() in place of int main() right? what's the difference? #needhelp
c++
variables
2 Votes
3 RĂ©ponses
2nd Jul 2016, 2:48 PM
Bhavin Bopanna
#include"stdio.h" #include"math.h" void main() {int m,i,j; Â Â Â Â Â canf("%d",&m); j=sqrt(m); for(i=2,i<=j,i++) if (m%i==0)break
c
-1 Vote
1 RĂ©ponse
27th Mar 2018, 9:41 AM
Clearlove
If malloc returns void * then what does the new operater returns when it encounters a failure ?
c++
failure
new
return
type
1 Vote
4 RĂ©ponses
17th Mar 2019, 3:14 PM
Sahil Bhakat
 #include<stdio.h> #include<conio.h> void main(){ int a,i=4; a=- -i+- -i+- -5; printf("%d %d",a,i); } return x*3; }
c
0 Vote
5 RĂ©ponses
25th Dec 2016, 8:32 AM
Arpitha G R
In java the word void means it does not return any value, Could anybody explain it to me??
c++
java
javascript
3 Votes
4 RĂ©ponses
2nd Apr 2017, 4:56 PM
Jalal Uddin
class leapyear { public static void main (String args[]] { int year=2016; if(year%4==0) { System.out.println(âThe given year is
java
0 Vote
4 RĂ©ponses
8th Jan 2025, 10:31 AM
Prem Sharma
Is it fine to write : " int main()" or " void main ()" in c++ ?
()
&
c++
in
int
main
void
1 Vote
2 RĂ©ponses
7th May 2018, 12:05 PM
Hassan Abdullah Alzubidy
"public static void main(String[ ] args)"for what we are using string[] args..what they perform in program?
variables
0 Vote
3 RĂ©ponses
4th Jun 2018, 3:52 PM
Sridhar
Why do the methods with the return type void still returns a value?
method
returntype
void
0 Vote
1 RĂ©ponse
1st Jan 2017, 7:43 AM
Usama Zahid
why static keyword is necessary to declare a method? like static void circle()
java
methods
0 Vote
1 RĂ©ponse
24th Sep 2016, 6:48 AM
Mahadev Chinchole
#include<stdio.h>Â void main(){Â int i;Â for(i=0;i<5;i++){Â int x=0;Â printf("%d",x);Â x++;Â } Â }Â
c
0 Vote
1 RĂ©ponse
25th Dec 2016, 7:48 AM
Arpitha G R
Purpose of void?
?
c++
void
1 Vote
3 RĂ©ponses
5th Aug 2019, 8:23 PM
TheDoctor
Anyone can explain me what means void f(int& r) and why the output of this code is 1?
c++
pointers
0 Vote
6 RĂ©ponses
18th Dec 2016, 1:03 PM
Telmo Pinto
Why we use datatypes before the main() function. What is difference among int main() and void main() and float main()
c
1 Vote
4 RĂ©ponses
4th Aug 2022, 12:19 PM
Suraj Joshi
What is the output of this code? enum Test {a=2,b,c,d,e}; static void main (string [] args){int(x) = (int)Test.c ; writeln (x)}
enums
-3 Votes
4 RĂ©ponses
7th Jun 2017, 11:50 PM
thomo
Whats wrong with my division function void mod() it doesn't work all the others do.
c++
0 Vote
1 RĂ©ponse
15th Aug 2020, 3:10 PM
Michael Baffoe
why don't we use void instead of int as a return type for main function?
c++
1 Vote
2 RĂ©ponses
29th Sep 2016, 3:11 PM
siddharth jadhav
import java.util.Scanner; class MyClass { public static void main(String[ ] args) { Scanner myVar = new Scanner(System.in); System.out.println(myVar.nextLine()); } }
input
java
0 Vote
6 RĂ©ponses
12th Oct 2016, 6:53 AM
Javed
Is it possible to have a date & time output in C without using Void Main or <time.h>?
c
0 Vote
4 RĂ©ponses
4th Dec 2019, 4:08 AM
Gabriel Arguelles
public class Main { public static void main(String[] args) { //correct variable declarations int name = "J
can
don'tknow
help
i
me
todo
what
who
0 Vote
2 RĂ©ponses
21st Nov 2020, 1:58 AM
John Hale
public class Program { public static void main(String[] args) { //fix the variable types string name =
0
error
line
0 Vote
2 RĂ©ponses
25th Jul 2022, 6:12 PM
30 Nidhi Kumari 10B
Can anyone tell me what is the utility of using void data type in c++?
c++
1 Vote
2 RĂ©ponses
4th Mar 2017, 9:31 AM
Gaurav Kaushik
#include<stdio.h> struct node { char c[5]; }; void main() { struct node n[]={"ABC","TECH"}; printf("%c",n[1].c[1]); }
c
c++
html
java
jquery
query
1 Vote
1 RĂ©ponse
29th Apr 2020, 9:52 AM
Rihaj Mujawar
I can't understand what is the difference of void type data type to the other data types, can anyone explain what is the use of void data type to a program
c++
0 Vote
2 RĂ©ponses
26th Aug 2016, 12:01 AM
Joshua Mariscotes
Output and explanation pls?
c++
void
0 Vote
2 RĂ©ponses
15th Sep 2016, 6:37 AM
Akshay Jain
Why use the following: public Function foo() {//code} Instead of public void foo () {//code} ?
functions
java
methods
0 Vote
2 RĂ©ponses
2nd Oct 2019, 6:24 PM
Tshego M
package statictest; public class StaticTest { public static void main(String args[]) { System.out.println(Test.i); } }
java
-1 Vote
2 RĂ©ponses
18th Sep 2021, 1:34 AM
Prathamesh Dalvi
public class Program { public static void main(String[] args) { int [ ] myArr = {6, 42, 3, 7}; int sum=0;
arrays
1 Vote
8 RĂ©ponses
16th Mar 2018, 3:48 PM
Devansh Gupta
public class Program { public static void main(String[] args) { } { int a = 1; while (a<=5)
tes
1 Vote
4 RĂ©ponses
18th Oct 2017, 12:04 PM
Agni Rosadi
C displays a -106 instead of 150 when using malloc()
c
cpp
function
parameter
pointers
template
void
1 Vote
3 RĂ©ponses
28th Apr 2021, 6:17 AM
Clueless Coder
Why the error is coming like ( the end of non void mentioning that ' } ' this bracket. Any corrections is there
c
recursion
1 Vote
7 RĂ©ponses
29th Sep 2023, 6:18 PM
Hiriharan V M EEE
#include <stdio.h> struct customer { int phone_no; char name[80]; int balance; }; void accept(struct customer[], in
find
results
the
0 Vote
1 RĂ©ponse
5th Mar 2022, 6:43 AM
Letwin Rgwodzi
How can i modify the methods of javato suit my own needs
()
main
static
void
3 Votes
7 RĂ©ponses
5th Jun 2019, 4:52 AM
Great Pyramids đ
Pls what are functions and parameters. And what does void do to them if used?. Thank u
c++
0 Vote
4 RĂ©ponses
14th Dec 2016, 11:19 PM
Michael Dogbey
Is it difficult to understand functions, array,with pointers?
c
void
0 Vote
1 RĂ©ponse
4th Jan 2019, 4:57 AM
SIVASANKAR P
What is difference between int main and void main how it works and what is use of return value in c language
int
main
return
void
0 Vote
2 RĂ©ponses
14th Aug 2019, 6:54 AM
Balaji
#include <iostream> #include<cctype> #include<string> using namespace std; void PersonalDetails() { string name1,name2; int age;
c++
help
in
is
it
me
please
strings
0 Vote
1 RĂ©ponse
25th Jun 2017, 4:20 PM
Ahaa mark
Can you get value from one void to onether by pointer if yes how?
c++
dynamic
memory
pointers
0 Vote
1 RĂ©ponse
3rd Jan 2017, 12:03 AM
Justas Glodenis
Why is public static void is used in java coding and what it mean
java
-2 Votes
1 RĂ©ponse
23rd May 2017, 1:18 PM
Preet Shah
import java.io.*; public class BinaryFileDemo { public static void main(String[] args) { FileOutputStream outobject
importjava.io.*;public
-4 Votes
1 RĂ©ponse
31st Dec 2020, 3:19 AM
Jibon Kumar
What is the main difference between void main and int main ? Pls answer my question thank u.
c++
2 Votes
3 RĂ©ponses
27th May 2017, 6:15 AM
YASH KATARE
Poser une question
Poser une question
Poser une question
Poser une question
< Précédent
1
...
11
12
13
...
17
Suivant >
Aujourd'hui en vedette
Void functional void with bool function
0 Votes
Python
2 Votes
TICTACTOE
1 Votes
Learn python
2 Votes
Error
0 Votes
BIG DOUBTđ€đ€đ€đ€
2 Votes
Need help (French)
1 Votes
Help for study
0 Votes
Spying on me
1 Votes
Where's PHP and Ruby courses?
1 Votes