Cursos
Cursos
Compilador de Código
Compilador de Código
Discutir
Preços
Teams
Fazer login
Registrar
Menu
Q&A Discussões
Pesquisar
Pesquisar
Faça uma pergunta
Faça uma pergunta
What happens if i didn't write return 0; at the end of my program ?
0
return
2 Votos
16 Respostas
17th Jun 2019, 3:38 PM
The unknown 321
Why padding: 0, 70px, 30px, 0; - do not work?
bootstrap
css3
html5
1 Voto
3 Respostas
7th Jan 2018, 8:30 AM
Vyacheslav Plekhanov
#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 Votos
15 Respostas
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 Voto
2 Respostas
7th Sep 2019, 5:16 PM
Karan Dubey
If(c=(printf("my name is"))==1){ return 0; }else { return c;}
If
0 Voto
2 Respostas
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 Voto
3 Respostas
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 Votos
5 Respostas
11th Jan 2019, 3:05 PM
Devasheesh
Anybody please help me to know about return 0;
c++
0 Voto
2 Respostas
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 Voto
2 Respostas
2nd Apr 2020, 7:03 AM
BLACK GOD
Why return 0; is used i need proper some proper explanation
c++
1 Voto
2 Respostas
28th Jul 2019, 11:47 AM
Kishore
What is actually the role of return 0; ?
c++
0 Voto
1 Resposta
26th Sep 2016, 4:16 PM
Aswin K R
#include <stdio.h> int main() { int a=1; printf ("%d%d%d",a,++a,a++); return 0; }
c
logic
0 Voto
3 Respostas
6th Apr 2022, 4:42 PM
Janvi Desai
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 Votos
8 Respostas
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 Voto
3 Respostas
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 Votos
9 Respostas
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 Votos
30 Respostas
26th Jul 2017, 3:04 PM
Nargiza Eshbekova
To end the cout do i need to have return 0; and {}
c++
2 Votos
5 Respostas
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 Votos
7 Respostas
22nd Oct 2021, 5:19 AM
Palleni Sasidhar
int main() { int x=3; cout<<(x<5) +1; return 0; }
cpp
0 Voto
2 Respostas
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 Votos
2 Respostas
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 Voto
1 Resposta
30th Dec 2020, 3:59 AM
Ankit Kumar
if we use return 1; instead return 0; what happens?
c++
0 Voto
2 Respostas
11th Aug 2016, 5:05 PM
Padam Singh
why we use return 0; ??? what if we return 5;????
c++
1 Voto
2 Respostas
19th Nov 2016, 8:35 AM
BAWALa a unsung hero
#include <stdio.h> int main() { int c=50; for(;c;) c--; printf ("c=%d",c); return 0; }
=0
c
why
0 Voto
4 Respostas
27th Dec 2020, 9:43 AM
Ankit Kumar
#include <stdio.h> int main() { printf("%d",printf ("HelloWorld")); return 0; }
print
question
-3 Votos
2 Respostas
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 Votos
3 Respostas
7th Mar 2017, 1:09 PM
Siyabonga Mkhatshwa
#include <iostream> using namespace std; int main() { cout << "Hello world!"; return 0; }
java
-3 Votos
5 Respostas
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 Voto
5 Respostas
27th Jun 2017, 2:43 PM
Walter Mugo
Guys what is " return 0; " Mean in coding language specificaly C++?
c++
1 Voto
2 Respostas
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 Voto
4 Respostas
2nd Feb 2022, 7:49 AM
ᴮᴰ⁷¹〆ᴀʟᴀмιɴ﷼ツ࿐
Why do we put put return 0; at the rnd ofba block
block
c++
2 Votos
2 Respostas
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 Voto
1 Resposta
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 Voto
5 Respostas
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 Votos
8 Respostas
9th Mar 2017, 4:09 PM
SIGMA
Can we write return 1 or 2 or any number instead of return 0;
c++
variables
-1 Voto
3 Respostas
4th Jul 2021, 5:15 PM
Sundaram Kumar
I did not understand the use of return 0; please help
c++
0 Voto
2 Respostas
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 Voto
3 Respostas
15th Sep 2020, 5:33 AM
Abdul Sami
Why we use return 0; at the bottom of c program.
-2 Votos
2 Respostas
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 Voto
1 Resposta
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 Voto
7 Respostas
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 Voto
2 Respostas
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 Voto
5 Respostas
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 Voto
3 Respostas
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 Voto
4 Respostas
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 Voto
2 Respostas
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 Voto
4 Respostas
13th Nov 2016, 4:54 PM
prashanth jerry
What does it mean to return 0; at the end of a code
operators
0 Voto
2 Respostas
22nd Apr 2018, 9:20 AM
Abdulhaq Abdulrasheed
Pleade Explain output of this code int main() { cout <<1+"hello"; return 0; }
c++
0 Voto
2 Respostas
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 Votos
4 Respostas
16th May 2018, 7:18 AM
Eniola Odunmbaku
#include <iostream> int main(int argc, char **argv) { std::cout << 25u - 50; return 0; }
c++
-2 Votos
5 Respostas
15th Dec 2017, 9:35 AM
nirav malaviya
Faça uma pergunta
Faça uma pergunta
Faça uma pergunta
Faça uma pergunta
< Anterior
1
2
3
...
5
Próximo >
Quente hoje
Can i get my old account back? I had deleted it :(
2 Votes
HTML
1 Votes
Formating in python
0 Votes
How to have a helper function in a class ,without getting a warning of (self expected as the first parameter )
1 Votes
Could you ple ase help me???
0 Votes
What's wrong here?
0 Votes
Who’s been using this app for 7+ years
0 Votes
Header, Main, Footer
0 Votes
Wifi Password
0 Votes
How to grow in sololearn
0 Votes