Cursos
Cursos
Compilador de Código
Compilador de Código
Debatir
Precios
Teams
Iniciar sesión
Registrarse
Menu
Sesiones de PyR
Buscar
Buscar
Haz una pregunta
Haz una pregunta
What does it mean when the function main() returns a value ??
main
13 Votos
15 Respuestas
22nd Apr 2017, 2:14 PM
Saja Husam
How do i type another text
int
main()
0 Votos
10 Respuestas
17th Oct 2020, 12:23 AM
Ultra WALKER
What is the use of main() and why is it compulsory??🤔
c++
int
main
main()
2 Votos
5 Respuestas
21st Oct 2021, 2:32 AM
John Lukose Cochettu
#include int main() { int i; for(i=1,iprintf("%d",i); }
c
0 Votos
6 Respuestas
14th May 2020, 11:54 PM
Md Saiful Islam
How to decrypt a password in java?
main()
0 Votos
2 Respuestas
11th Dec 2017, 3:49 PM
Hari Krishna
Can we overload the main() method in java ?
api
java
0 Votos
5 Respuestas
19th Aug 2018, 2:03 PM
Indu Devarashetty
#include <stdio.h> int main() { unsigned char x=300; printf("%d",x); }
unsigned
0 Votos
5 Respuestas
19th Jul 2019, 5:10 PM
Rohit Ahuja
int main() means what?where it is used?
c
0 Votos
1 Respuesta
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 Voto
1 Respuesta
2nd Feb 2020, 5:12 PM
Amit Kumar
#include <iostream> using namespace std; int main() { cout << "Hello world!"; return 0; }
c++
-2 Votos
19 Respuestas
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 Votos
3 Respuestas
22nd Aug 2016, 6:30 AM
Amel Alrooh
Is it possible to give arguments in main() function?
c++
0 Votos
6 Respuestas
19th Jan 2017, 9:42 AM
Aakash Garg
Is it possible to return a char datatype from main() in c?
c
char
function
sololearn
1 Voto
10 Respuestas
12th Jul 2021, 10:06 AM
Srinath
Instantiation: Object written in main() vs in class
c++
class
1 Voto
1 Respuesta
11th Aug 2020, 9:01 AM
Solus
Please when use int main() please return int
data-types
int
main
quiz
return
2 Votos
2 Respuestas
13th Jul 2017, 12:33 PM
Chokri ZAGROUBA
Is the main() built in or user define function?
c
c++
java
2 Votos
4 Respuestas
26th Mar 2017, 2:46 AM
Namrata Bagh
is Main() function necessary in C++ program?
c++
0 Votos
2 Respuestas
30th Jun 2016, 3:06 AM
Sidhu
What is the use of int main()
c++
0 Votos
2 Respuestas
14th Aug 2017, 4:38 PM
Bhatt Bhaumik
What is abnornal termination of main() function ?
c++
0 Votos
2 Respuestas
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 Voto
2 Respuestas
14th May 2020, 7:14 AM
Krupang Buddhdev
Please help me to write main() function in c.
c
leetcode
main()
output
2 Votos
2 Respuestas
11th Dec 2022, 5:37 AM
filibuster
Can main() be changed to a different identifier tailored for a specific program? If so then how
functions
main()
1 Voto
7 Respuestas
25th Jun 2019, 10:34 PM
Mandla Thabethe
#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 Respuestas
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 Respuestas
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 Votos
7 Respuestas
10th Feb 2021, 7:40 PM
Sanjeeb Kumar Rai
Why does void main() show an error?
c++
functions
main
0 Votos
1 Respuesta
7th Feb 2017, 5:37 PM
Rudradeep Deb
can I use void main() instead of using namespace std
c++
cout
3 Votos
5 Respuestas
31st Jul 2016, 5:31 AM
Eyuwankg Swankg
what is the purpose of using main() ?
c++
0 Votos
3 Respuestas
10th Nov 2016, 1:58 AM
Nida Mukhtar
Why hello() .. shouldn't it be main() ??
c++
functions
0 Votos
3 Respuestas
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 Votos
1 Respuesta
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 Votos
2 Respuestas
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 Votos
13 Respuestas
10th Mar 2020, 8:13 PM
sagor zia
#include <iostream> using namespace std; int main() { cout << "Hello world!"; return 9; }
micheal
2 Votos
6 Respuestas
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 Votos
2 Respuestas
8th Jun 2020, 10:38 AM
Ishita Gupta
can we change the main function like bollean main()
c
c++
0 Votos
2 Respuestas
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 Votos
12 Respuestas
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 Votos
7 Respuestas
21st Jun 2018, 6:24 AM
ALOK GOLDY
Why do we have to write int with main()
c++
0 Votos
4 Respuestas
15th Jan 2017, 5:30 AM
nishika
Can i use void main() in place of int main()?
c++
1 Voto
5 Respuestas
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 Respuestas
15th Dec 2016, 7:56 AM
chandraprakash
Can a java program can run without main() method?
java
2 Votos
2 Respuestas
18th Jun 2017, 10:48 PM
sandeep kaur
why int main() is declared at the beginning of program ?
basics
beginner
c
int
2 Votos
6 Respuestas
6th Feb 2019, 4:44 PM
Pilli Revant Krishna Sagar
What dose int main(int argc, char ** argv) mean?
c++
functions
main()
8 Votos
5 Respuestas
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 Votos
2 Respuestas
23rd Oct 2017, 7:34 AM
suhail pgm
In C language who calls the main() function?
c
main()
0 Votos
2 Respuestas
26th Feb 2017, 8:43 AM
Nishant Amoli
Why do we have to return 1 in int main() function?
c++
cpp
8 Votos
2 Respuestas
18th Oct 2016, 9:14 AM
Lara
Is return statement compulsory in int main() function?
#function
#return
c++
0 Votos
2 Respuestas
24th May 2017, 6:41 AM
Mystique
What is the main difference in main() and void main()?
c
3 Votos
3 Respuestas
3rd May 2017, 1:49 PM
HiRo
Why am i unable to use void main() in c++ ?
c++
cpp
error
3 Votos
1 Respuesta
20th Mar 2019, 5:51 AM
Shikher Jaitly
What if we used void main() instead of int main()?
c++
1 Voto
4 Respuestas
14th Jun 2016, 9:58 AM
Bijesh Mohan
Haz una pregunta
Haz una pregunta
Haz una pregunta
Haz una pregunta
< Anterior
1
2
3
4
...
10
Siguiente >
En tendencia hoy
Solved Chess tournament you’re creating code for a chess tournament
2 Votes
[off-topic]Where is Result??
2 Votes
I really need a tutor
1 Votes
Mentor rank
2 Votes
[SOLVED] Where do you find code coaches?
1 Votes
∞♥
2 Votes
Cpp
1 Votes
Why does it disappear?
0 Votes
developpement
2 Votes
Have SoloLearn Certs helped anyone find a Job? If so how did you use the ending that you got in learning?
1 Votes