Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
What does it mean when the function main() returns a value ??
main
13 Votes
15 Answers
22nd Apr 2017, 2:14 PM
Saja Husam
How int main () and void main() works
2
-1 Vote
3 Answers
19th Jan 2020, 9:58 AM
RAJGOPAL NAYAK K
What is the use of main() and why is it compulsory??🤔
c++
int
main
main()
2 Votes
5 Answers
21st Oct 2021, 2:32 AM
John Lukose Cochettu
How to decrypt a password in java?
main()
0 Votes
2 Answers
11th Dec 2017, 3:49 PM
Hari Krishna
#include int main() { int i; for(i=1,iprintf("%d",i); }
c
0 Votes
6 Answers
14th May 2020, 11:54 PM
Md Saiful Islam
Can we overload the main() method in java ?
api
java
0 Votes
5 Answers
19th Aug 2018, 2:03 PM
Indu Devarashetty
#include <stdio.h> int main() { unsigned char x=300; printf("%d",x); }
unsigned
0 Votes
5 Answers
19th Jul 2019, 5:10 PM
Rohit Ahuja
int main() means what?where it is used?
c
0 Votes
1 Answer
7th Feb 2020, 5:13 PM
Mani Vinnakota
#include<stdio.h> void main() { int a; a=(1,2,3); printf("%d",a); }
arrays
data-types
input
1 Vote
1 Answer
2nd Feb 2020, 5:12 PM
Amit Kumar
#include <iostream> using namespace std; int main() { cout << "Hello world!"; return 0; }
c++
-2 Votes
19 Answers
2nd Oct 2019, 7:54 AM
Tushit Sharma 24 CODER
what's the difference between the int main() and void main() ? what is the best for use ?
c++
0 Votes
3 Answers
22nd Aug 2016, 6:30 AM
Amel Alrooh
Is it possible to give arguments in main() function?
c++
0 Votes
6 Answers
19th Jan 2017, 9:42 AM
Aakash Garg
Instantiation: Object written in main() vs in class
c++
class
1 Vote
1 Answer
11th Aug 2020, 9:01 AM
Solus
Please when use int main() please return int
data-types
int
main
quiz
return
2 Votes
2 Answers
13th Jul 2017, 12:33 PM
Chokri ZAGROUBA
Is the main() built in or user define function?
c
c++
java
2 Votes
4 Answers
26th Mar 2017, 2:46 AM
Namrata Bagh
is Main() function necessary in C++ program?
c++
0 Votes
2 Answers
30th Jun 2016, 3:06 AM
Sidhu
What is the use of int main()
c++
0 Votes
2 Answers
14th Aug 2017, 4:38 PM
Bhatt Bhaumik
What is abnornal termination of main() function ?
c++
0 Votes
2 Answers
22nd May 2018, 3:56 AM
Shivam Kumar
#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
Can main() be changed to a different identifier tailored for a specific program? If so then how
functions
main()
1 Vote
7 Answers
25th Jun 2019, 10:34 PM
Mandla Thabethe
Please help me to write main() function in c.
c
leetcode
main()
output
2 Votes
2 Answers
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 Vote
11 Answers
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 Vote
11 Answers
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 Votes
7 Answers
10th Feb 2021, 7:40 PM
Sanjeeb Kumar Rai
Why does void main() show an error?
c++
functions
main
0 Votes
1 Answer
7th Feb 2017, 5:37 PM
Rudradeep Deb
can I use void main() instead of using namespace std
c++
cout
3 Votes
5 Answers
31st Jul 2016, 5:31 AM
Eyuwankg Swankg
what is the purpose of using main() ?
c++
0 Votes
3 Answers
10th Nov 2016, 1:58 AM
Nida Mukhtar
Why hello() .. shouldn't it be main() ??
c++
functions
0 Votes
3 Answers
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 Votes
1 Answer
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 Votes
2 Answers
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 Votes
13 Answers
10th Mar 2020, 8:13 PM
sagor zia
#include <iostream> using namespace std; int main() { cout << "Hello world!"; return 9; }
micheal
2 Votes
6 Answers
2nd Nov 2018, 6:51 AM
D ̲E ̲S ̲S ̲I ̲E ̲- ̲B ̲A ̲H ̲I ̲R ̲U ̲
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 Votes
2 Answers
8th Jun 2020, 10:38 AM
Ishita Gupta
can we change the main function like bollean main()
c
c++
0 Votes
2 Answers
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 Votes
12 Answers
12th Sep 2018, 5:50 PM
Arun
#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 Votes
7 Answers
21st Jun 2018, 6:24 AM
ALOK GOLDY
Why do we have to write int with main()
c++
0 Votes
4 Answers
15th Jan 2017, 5:30 AM
nishika
Can i use void main() in place of int main()?
c++
1 Vote
5 Answers
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 Vote
4 Answers
15th Dec 2016, 7:56 AM
chandraprakash
Can a java program can run without main() method?
java
2 Votes
2 Answers
18th Jun 2017, 10:48 PM
sandeep kaur
why int main() is declared at the beginning of program ?
basics
beginner
c
int
2 Votes
6 Answers
6th Feb 2019, 4:44 PM
Pilli Revant Krishna Sagar
What dose int main(int argc, char ** argv) mean?
c++
functions
main()
8 Votes
5 Answers
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 Votes
2 Answers
23rd Oct 2017, 7:34 AM
suhail pgm
In C language who calls the main() function?
c
main()
0 Votes
2 Answers
26th Feb 2017, 8:43 AM
Nishant Amoli
Why do we have to return 1 in int main() function?
c++
cpp
8 Votes
2 Answers
18th Oct 2016, 9:14 AM
Lara
Is return statement compulsory in int main() function?
#function
#return
c++
0 Votes
2 Answers
24th May 2017, 6:41 AM
Mystique
What is the main difference in main() and void main()?
c
3 Votes
3 Answers
3rd May 2017, 1:49 PM
HiRo
Why am i unable to use void main() in c++ ?
c++
cpp
error
3 Votes
1 Answer
20th Mar 2019, 5:51 AM
Shikher Jaitly
What if we used void main() instead of int main()?
c++
1 Vote
4 Answers
14th Jun 2016, 9:58 AM
Bijesh Mohan
Why my code doesn't give an error ..?I execute it in online compiler it gives error.
java
main()
1 Vote
2 Answers
17th Oct 2020, 9:46 AM
❤☆Nani☆❤
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
2
3
4
...
10
Next >
Hot today
New code
1 Votes
Does anyone have the solution for this challenge?
1 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Why does coding take so long to learn
0 Votes
Solved Ai generated practice the last question
0 Votes
Hello Everyone
0 Votes
Solved# Survey data format in coding for data
0 Votes
How to add unordered lists in HTML.
0 Votes
What is the use of .kt classes in the React Native project
0 Votes
Solved #Relay race coding for unit 9 you are creating code for a relay race
0 Votes