Corsi
Accedi
Inizia a imparare l'IA
Corsi
Accedi
Inizia a imparare l'IA
Discussioni Q&A
Cerca
Cerca
Fai una domanda
Fai una domanda
How int main () and void main() works
2
-1 Voto
3 Risposte
19th Jan 2020, 9:58 AM
RAJGOPAL NAYAK K
What does it mean when the function main() returns a value ??
main
13 Voti
15 Risposte
22nd Apr 2017, 2:14 PM
Saja Husam
How to decrypt a password in java?
main()
0 Voti
2 Risposte
11th Dec 2017, 3:49 PM
Hari Krishna
What is the use of main() and why is it compulsory??🤔
c++
int
main
main()
2 Voti
5 Risposte
21st Oct 2021, 2:32 AM
John Lukose Cochettu
Can we overload the main() method in java ?
api
java
0 Voti
5 Risposte
19th Aug 2018, 2:03 PM
Indu Devarashetty
#include int main() { int i; for(i=1,iprintf("%d",i); }
c
0 Voti
6 Risposte
14th May 2020, 11:54 PM
Md Saiful Islam
#include <stdio.h> int main() { unsigned char x=300; printf("%d",x); }
unsigned
0 Voti
5 Risposte
19th Jul 2019, 5:10 PM
Rohit Ahuja
int main() means what?where it is used?
c
0 Voti
1 Risposta
7th Feb 2020, 5:13 PM
Mani Vinnakota
#include <iostream> using namespace std; int main() { cout << "Hello world!"; return 0; }
c++
-2 Voti
22 Risposte
2nd Oct 2019, 7:54 AM
Tushit Sharma 24 CODER
#include<stdio.h> void main() { int a; a=(1,2,3); printf("%d",a); }
arrays
data-types
input
1 Voto
1 Risposta
2nd Feb 2020, 5:12 PM
Amit Kumar
what's the difference between the int main() and void main() ? what is the best for use ?
c++
0 Voti
3 Risposte
22nd Aug 2016, 6:30 AM
Amel Alrooh
Is it possible to give arguments in main() function?
c++
0 Voti
6 Risposte
19th Jan 2017, 9:42 AM
Aakash Garg
Instantiation: Object written in main() vs in class
c++
class
1 Voto
1 Risposta
11th Aug 2020, 9:01 AM
Solus
Please when use int main() please return int
data-types
int
main
quiz
return
2 Voti
2 Risposte
13th Jul 2017, 12:33 PM
Chokri ZAGROUBA
Is the main() built in or user define function?
c
c++
java
2 Voti
4 Risposte
26th Mar 2017, 2:46 AM
Namrata Bagh
is Main() function necessary in C++ program?
c++
0 Voti
2 Risposte
30th Jun 2016, 3:06 AM
Sidhu
What is the use of int main()
c++
0 Voti
2 Risposte
14th Aug 2017, 4:38 PM
Bhatt Bhaumik
What is abnornal termination of main() function ?
c++
0 Voti
2 Risposte
22nd May 2018, 3:56 AM
Shivam Kumar
Can main() be changed to a different identifier tailored for a specific program? If so then how
functions
main()
1 Voto
7 Risposte
25th Jun 2019, 10:34 PM
Mandla Thabethe
#include<stdio.h> void main() { int count=0?2:0?3:4?5:6?1:9; printf("%d", count); }
c
tutorial
1 Voto
2 Risposte
14th May 2020, 7:14 AM
Krupang Buddhdev
Please help me to write main() function in c.
c
leetcode
main()
output
2 Voti
2 Risposte
11th Dec 2022, 5:37 AM
filibuster
#include<iostream> using namespace std; int main() { int a=7,b=1; if(a=8||b==5) {cout<<a*b<<a<<b;} cout<<" "<<a;
c++
1 Voto
11 Risposte
23rd Mar 2021, 3:14 PM
san sheva S
#include <stdio.h> #include <string.h> int main() { string alien; scanf("%s",alien); strrev(alien); printf("%s",alie
c
-1 Voto
11 Risposte
11th Aug 2020, 1:07 PM
PRABHU D
#include <stdio.h> int main() { do{ printf("Hi"); }while(5,3,0); return 0; }
do
loops
while
0 Voti
7 Risposte
10th Feb 2021, 7:40 PM
Sanjeeb Kumar Rai
Why does void main() show an error?
c++
functions
main
0 Voti
1 Risposta
7th Feb 2017, 5:37 PM
Rudradeep Deb
can I use void main() instead of using namespace std
c++
cout
3 Voti
5 Risposte
31st Jul 2016, 5:31 AM
Eyuwankg Swankg
what is the purpose of using main() ?
c++
0 Voti
3 Risposte
10th Nov 2016, 1:58 AM
Nida Mukhtar
Why hello() .. shouldn't it be main() ??
c++
functions
0 Voti
3 Risposte
4th Nov 2016, 8:59 AM
sahag
#include<stdio.h> main() { int a=-5; int k=(a++,++a); printf("%d",k); }
operator-precedence
operators
0 Voti
1 Risposta
4th Apr 2020, 11:35 AM
ADITYA PRATAP SINGH
#include <stdio.h> #define sqr(x) x*x int main() { printf("%d",sqr(3+1)); return 0; }
c
macro
4 Voti
2 Risposte
17th Sep 2020, 11:20 AM
Shaktirajsinh zala
#include <stdio.h> int main() { char a = getchar(); printf("You entered: %c", a); return 0; }
input
output
3 Voti
13 Risposte
10th Mar 2020, 8:13 PM
sagor zia
main() {intarr[]={1,2,3,4,5}; int *ptr, i; ptr=arr+4; for(i=0;i<5;i++) printf(“\n%d”,*(ptr-1)); }
clanguage
-2 Voti
2 Risposte
8th Jun 2020, 10:38 AM
Ishita Gupta
#include <iostream> using namespace std; int main() { cout << "Hello world!"; return 9; }
micheal
2 Voti
6 Risposte
2nd Nov 2018, 6:51 AM
DESSIE BAHIRU KEBEDE
can we change the main function like bollean main()
c
c++
0 Voti
2 Risposte
17th Jul 2019, 6:57 PM
Muhammad Mehran Bin Azam
#include <iostream> using namespace std; int main() { int a=0,u=0; u=(a) * ++a; cout<<u; }
c++
rocks
3 Voti
12 Risposte
12th Sep 2018, 5:50 PM
Arun
Why do we have to write int with main()
c++
0 Voti
4 Risposte
15th Jan 2017, 5:30 AM
nishika
#include<stdio.h> #include<conio.h> int main() { int x,y=2,z,a; x=(y*=2)+(z=a=y); printf("%d",x); getch(); }
c
0 Voti
7 Risposte
21st Jun 2018, 6:24 AM
ALOK GOLDY
Can i use void main() in place of int main()?
c++
1 Voto
5 Risposte
11th Oct 2016, 5:19 PM
Sidharth Sreenivas
in c++ program on internet Can we write void main() instead of Int main() and what changes we should made on it
c++
1 Voto
4 Risposte
15th Dec 2016, 7:56 AM
chandraprakash
Can a java program can run without main() method?
java
2 Voti
2 Risposte
18th Jun 2017, 10:48 PM
sandeep kaur
why int main() is declared at the beginning of program ?
basics
beginner
c
int
2 Voti
6 Risposte
6th Feb 2019, 4:44 PM
Pilli Revant Krishna Sagar
What dose int main(int argc, char ** argv) mean?
c++
functions
main()
8 Voti
5 Risposte
10th Sep 2018, 4:17 PM
LONGTIE👔
int main() {int i=4; i=++i-i++ +(2*i); if(i>10) i=i+(--i); cout<<i;
cout
2 Voti
2 Risposte
23rd Oct 2017, 7:34 AM
suhail pgm
In C language who calls the main() function?
c
main()
0 Voti
2 Risposte
26th Feb 2017, 8:43 AM
Nishant Amoli
Why do we have to return 1 in int main() function?
c++
cpp
8 Voti
2 Risposte
18th Oct 2016, 9:14 AM
Lara
Is return statement compulsory in int main() function?
#function
#return
c++
0 Voti
2 Risposte
24th May 2017, 6:41 AM
Mystique
What is the main difference in main() and void main()?
c
3 Voti
3 Risposte
3rd May 2017, 1:49 PM
HiRo
Why am i unable to use void main() in c++ ?
c++
cpp
error
3 Voti
1 Risposta
20th Mar 2019, 5:51 AM
Shikher Jaitly
Why my code doesn't give an error ..?I execute it in online compiler it gives error.
java
main()
1 Voto
2 Risposte
17th Oct 2020, 9:46 AM
❤☆Nani☆❤
What if we used void main() instead of int main()?
c++
1 Voto
4 Risposte
14th Jun 2016, 9:58 AM
Bijesh Mohan
Fai una domanda
Fai una domanda
Fai una domanda
Fai una domanda
< Precedente
1
2
3
4
...
10
Successivo >
Popolare oggi
Is it possible to convert .zip file to apk? If yes, how??
1 Votes
I think the heart system is ridiculous, 5 hearts that refill after like 5 hours? That is really just crazy to me.
1 Votes
Why can’t I use double “ in python?
0 Votes
What do you think of this code and what are your suggestions for developing and modifying it?, How can I develop myself more?
0 Votes
Coding for Cybersecurity
0 Votes
Pointers in c#
0 Votes
2 cases not correct what's the problem
1 Votes
You’re free to give me your advice! 🚨
0 Votes
Salut tout le monde
1 Votes
How can i isntall modules
0 Votes