New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
What happens if i didn't write return 0; at the end of my program ?
0
return
2 Votes
16 Answers
17th Jun 2019, 3:38 PM
The unknown 321
#include <stdio.h> int main() { int a=8, b=0,c=0; if(!a<10&& !b||c) printf("Rahman"); elae printf("abdul"); return 0; }
c
c++
2 Votes
15 Answers
27th Dec 2018, 4:00 AM
Abdul Rahman Khan
#include<stdio.h> int main() { int i=2; printf("%d, %d\n", ++i,++i); return 0; }
c
-1 Vote
2 Answers
7th Sep 2019, 5:16 PM
Karan Dubey
What happen if we se return 1; in place of return 0;
0
necessary
return
why
4 Votes
2 Answers
16th May 2019, 4:43 PM
SK@123
If(c=(printf("my name is"))==1){ return 0; }else { return c;}
If
0 Votes
2 Answers
19th Dec 2016, 4:38 AM
Shivesh Karan Mehta
#include <stdio.h> int main() { int n=0,m; for(m=1;m<=n+1;m++) printf("%d%d",++m,m++); return 0; }
c
output
0 Votes
3 Answers
8th May 2022, 5:56 PM
Abhishek Thakur
#include <stdio.h> int main() { int n; for(n=7;n!=0;n--) { printf ("n = %d",n--);} getchar(); return 0; }
c
loops
-2 Votes
4 Answers
11th Jan 2019, 3:05 PM
Devasheesh
Anybody please help me to know about return 0;
c++
0 Votes
2 Answers
18th Jan 2017, 5:21 PM
Slechu
int main() { int i=0,j=1; for(i;i<5;i++); j=i+j; cout<<j; return 0; }
c++
0 Votes
2 Answers
2nd Apr 2020, 7:03 AM
BLACK GOD
Why return 0; is used i need proper some proper explanation
c++
1 Vote
2 Answers
28th Jul 2019, 11:47 AM
Kishore
#include <stdio.h> int main() { int a=1; printf ("%d%d%d",a,++a,a++); return 0; }
c
logic
0 Votes
3 Answers
6th Apr 2022, 4:42 PM
Janvi Desai
What is actually the role of return 0; ?
c++
0 Votes
1 Answer
26th Sep 2016, 4:16 PM
Aswin K R
int arr[] = {11, 35, 62, 555, 989}; int sum = 0; for (int x = 0; x < 5; x++) { sum += arr[x]; } cout << sum << endl
arrays
5 Votes
8 Answers
27th Nov 2016, 4:31 PM
Bhairesh M
#include <stdio.h> int main() { printf("%d"+1, 123); printf("\n%d\n"); printf("%%d"); return 0; }
c
0 Votes
3 Answers
18th Aug 2017, 4:44 PM
SAURAV KUMAR
#include <iostream> using namespace std; int main() { int a=10,b; b=++a+(++a); cout<<b; return 0; }
c++
increment
5 Votes
9 Answers
28th Aug 2017, 1:07 PM
Rishabh Rai
Why output of this code is 10? int main() { int a=4,b; b=a+ ++a; cout<<b; return 0; }
cpp
5 Votes
30 Answers
26th Jul 2017, 3:04 PM
Nargiza Eshbekova
To end the cout do i need to have return 0; and {}
c++
2 Votes
5 Answers
11th Mar 2018, 2:00 PM
william rivera
include <stdio.h> int main() { int b=7,a; a=b++ + ++b+b++ ; printf ("%d\n",a); return 0; }
@sololearn
2 Votes
7 Answers
22nd Oct 2021, 5:19 AM
Palleni Sasidhar
int main() { int x=3; cout<<(x<5) +1; return 0; }
cpp
0 Votes
2 Answers
1st Jul 2017, 2:53 AM
Kushagra Agarwal
Why not in most beginner C++ exercises there is no built-in return 0; ?
c++
doubt
help
rookie
2 Votes
2 Answers
25th Jan 2023, 1:01 AM
Adrian Ochoa
#include <stdio.h> int main() { int i=0; for(i=1;i<=5;i++); printf("%d",i); return 0; }
answer
any
can
code
give
of
this
1 Vote
1 Answer
30th Dec 2020, 3:59 AM
Ankit Kumar
why we use return 0; ??? what if we return 5;????
c++
1 Vote
2 Answers
19th Nov 2016, 8:35 AM
BAWALa a unsung hero
if we use return 1; instead return 0; what happens?
c++
0 Votes
2 Answers
11th Aug 2016, 5:05 PM
Padam Singh
#include <stdio.h> int main() { int c=50; for(;c;) c--; printf ("c=%d",c); return 0; }
=0
c
why
0 Votes
4 Answers
27th Dec 2020, 9:43 AM
Ankit Kumar
#include <stdio.h> int main() { printf("%d",printf ("HelloWorld")); return 0; }
print
question
-3 Votes
2 Answers
23rd Feb 2018, 4:30 AM
Mahendra Lalani
What does the following mean...#include <iostream>....using namespace std; .... <<cout"hello world" ....return 0;
c++
3 Votes
3 Answers
7th Mar 2017, 1:09 PM
Siyabonga Mkhatshwa
#include <iostream> using namespace std; int main() { cout << "Hello world!"; return 0; }
java
-3 Votes
5 Answers
25th Nov 2016, 3:54 AM
Ahmet Bozkurt
What is the output of this code? int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else {
java
0 Votes
5 Answers
27th Jun 2017, 2:43 PM
Walter Mugo
Guys what is " return 0; " Mean in coding language specificaly C++?
c++
1 Vote
2 Answers
27th Sep 2020, 7:35 AM
Linus Tech Tips Fans
#include <iostream> using namespace >std; int main() { cout << "C/n+/n+">>endl; return 0; }
code
problem
0 Votes
4 Answers
2nd Feb 2022, 7:49 AM
ᴮᴰ⁷¹〆ᴀʟᴀмιɴ﷼ツ࿐
Why do we put put return 0; at the rnd ofba block
block
c++
2 Votes
2 Answers
27th Jun 2017, 1:15 AM
Mark Sheehan
Can some one help me to understand this PHP question please? $result = 0; and $i = 0; how can their addition be 10???
for
function-arguments
functions
php
0 Votes
1 Answer
4th Nov 2016, 3:56 PM
Haikal Jama Shaywal
#include <stdio.h> main() { int i; for(i=0;i<5;i+=4) { i=i*i; } printf("ans %d",i); return 0; }
include<stdio.h>
main(
0 Votes
5 Answers
11th Sep 2020, 9:44 AM
Chauhan Ashutoshkumar Harishankar
#include <iostream> #include<string> using namespace std; int main() { string a; cin>>a; cout<<a; return 0; }
c++
strings
4 Votes
8 Answers
9th Mar 2017, 4:09 PM
SIGMA
Can we write return 1 or 2 or any number instead of return 0;
c++
variables
-1 Vote
3 Answers
4th Jul 2021, 5:15 PM
Sundaram Kumar
I did not understand the use of return 0; please help
c++
0 Votes
2 Answers
4th Jan 2018, 7:53 AM
Manish Tulsiani
#include <constream.h> int main () { int x = 10, y = 3, z; for (z= 0; z < x;) z = z++ +y; cout <<"\n" << z; return 0; }
constream
for
0 Votes
3 Answers
15th Sep 2020, 5:33 AM
Abdul Sami
Why we use return 0; at the bottom of c program.
-2 Votes
2 Answers
17th Jan 2018, 6:35 AM
Pawan sharma
#include<stdio.h> int main() { char *ptr = "Hello"; printf("%c\n", *&*ptr); return 0; }
c
pointers
0 Votes
1 Answer
18th Jan 2021, 6:27 PM
yogesh
#include <iostream> using namespace std; int main() { int a,b,c; cin>>a>>b; c=a+b; c=a-b; cout<<c; return 0; }
c++
1 Vote
7 Answers
30th May 2018, 8:21 AM
Bunny
int result = 0; for (int i = 0; i < 5; i++) { if (i == 3) { result += 10; } else { result += i; } }
explain
1 Vote
2 Answers
11th Sep 2016, 4:16 AM
Syed Maqsood
What is the output of this code? let x = 0; for(let i=0;i<3;i++) { x+=i; } console.log(x);
development
loop
web
1 Vote
5 Answers
21st Jan 2023, 9:02 AM
Lusine Galstyan Nikolay
#include <iostream> using namespace >std; int main() { cout << "C/n+/n+">>endl; return 0; }
problem
-1 Vote
3 Answers
2nd Feb 2022, 7:04 AM
ᴮᴰ⁷¹〆ᴀʟᴀмιɴ﷼ツ࿐
{ int i; if(printf("0")) i=12; else i=13; printf("%d\n",i); return 0; } how the op is 012??
cprogramming
1 Vote
4 Answers
5th Feb 2020, 12:23 PM
Muskan Mishra
#include <stdio.h> #define square(x) x*x int main() { int i=(28/square(4)); printf("%d",i); return 0; }
define
0 Votes
2 Answers
1st Sep 2020, 10:42 AM
Rohit Ahuja
int main() { int b = 5; int arr[b] = {11, 35, 62, 555, 989}; int sum = 0; for (int x = 0; x < 5; x++) { sum+=arr[x]
arrays
c++
0 Votes
4 Answers
13th Nov 2016, 4:54 PM
prashanth jerry
What does it mean to return 0; at the end of a code
operators
0 Votes
2 Answers
22nd Apr 2018, 9:20 AM
Abdulhaq Abdulrasheed
Pleade Explain output of this code int main() { cout <<1+"hello"; return 0; }
c++
0 Votes
2 Answers
1st Nov 2019, 10:23 AM
Somvir Dhaka
Pls I don't understand something guys,, what is the meaning of the return 0; function in c++?
c++
4 Votes
4 Answers
16th May 2018, 7:18 AM
Eniola Odunmbaku
#include <iostream> int main(int argc, char **argv) { std::cout << 25u - 50; return 0; }
c++
-2 Votes
5 Answers
15th Dec 2017, 9:35 AM
nirav malaviya
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
2
3
...
5
Next >
Hot today
Hello, please help me understand how to solve
2 Votes
I want these three dots to jump inside that box..please help
1 Votes
Help with homework
0 Votes
Anybody that can help me fix my pc - long story short I'm dumb and deleted necessary system software files
1 Votes
How to create animation in Python?
2 Votes
Why are not all the codes showing?
0 Votes
please help me emotionally
1 Votes
While loop problem maybe?
2 Votes
Pls where can i download mobile phone stock pictures for e-commerce site?
0 Votes
What next?
0 Votes