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
Is it necessary to assign new typeoftheobject() each time we create one in the main ?
classes
java
0 Voto
2 Respostas
11th Jun 2017, 1:40 PM
Mehdi ABDALLAOUI
Can anyone explain this why we use String a[] in public static void main (String a[])
java
0 Voto
2 Respostas
18th Jul 2017, 2:33 PM
Rajan Khorasiya
Why we are not using void main for declaring a function? Instead we are using such as int?
c++
functions
0 Voto
3 Respostas
19th Oct 2016, 2:53 PM
Abhay Selva
Why do we need to do usingnamespace std and what is int main and why we use it?
c++
0 Voto
3 Respostas
18th Nov 2016, 12:46 AM
Aidan Toussaint
Why is it giving error in void main?
c++
main
void
1 Voto
2 Respostas
15th Nov 2016, 1:14 PM
Toshi Kudo
What array of strings actually gets passed to the main() method?
java
main
methods
1 Voto
2 Respostas
13th Jan 2018, 7:54 PM
Erik Johanson
int sum(int num); int main (){ int number=10; int result; result=sum(number); printf("%d", result); return 0; } int sum(int num)
explain
program
0 Voto
2 Respostas
9th May 2020, 3:07 PM
Karan Dewangan
int main () { for (int x = 1; x <= 10; x++) { cout << 1 + (rand() % 6) << endl; } }
rand
0 Voto
6 Respostas
17th May 2020, 9:29 AM
Salini Selvam
if __name__ == '__main__':
code
main
name
python
-1 Voto
2 Respostas
28th Jun 2021, 3:21 AM
Md Nazim Uddin Sagor
Why am getting wrong output?
array
c
c++
java
main
output
reverse
5 Votos
6 Respostas
2nd Oct 2019, 10:24 AM
Maninder $ingh
Porque un método debe ser static dentro de la función main?
main
methods
static
2 Votos
1 Resposta
5th Oct 2017, 4:28 PM
Luis Gerardo Collazos Castro
Which header file to include instead of conio to use getch ,clrscr functions and declare void main instead of int main?
cpp
3 Votos
2 Respostas
9th Dec 2017, 4:07 AM
raveena kagne
docstrings are just comments that are further explained or what is its main purpose? am not fully understanding the difference.
comments
python
0 Voto
3 Respostas
6th Nov 2016, 9:07 PM
Galata Hassan
Why it show thread in main exception when i use Scanner but if i not den its working so plz suggest me on ths!!!
exception
java
problem
2 Votos
2 Respostas
3rd Nov 2018, 3:54 PM
Harsh Agrawal
Fundamental Question on C
c
int
main
void
2 Votos
4 Respostas
6th Feb 2018, 7:28 AM
RAJESH SINHA
In Java Return type lesson , can you reverse main , and put it first ?
java
main
method
return
0 Voto
1 Resposta
26th Oct 2018, 5:45 PM
S. Kaouche
How do I add variables to a string array in a class from the main method?
arrays
c#
classes
constructors
0 Voto
1 Resposta
30th Nov 2017, 1:45 PM
kenneth Stanley
What is main use of swift? And what are the basics i should learn for developing a app?
swift
1 Voto
2 Respostas
13th Aug 2017, 2:09 PM
aishwarya.m
what is the main use of classes i cant seem to understand why classes is difficult for me
classes
java
1 Voto
2 Respostas
20th Jul 2016, 4:09 PM
Mubarak O. Aderogba
Is Python is the best language to learn now?and what are its main features and uses and sources for python?
bestlanguage
coding
python
1 Voto
3 Respostas
30th Aug 2017, 2:21 PM
harsh kathiriya
Do you have to have "int Variable = #;" in int main() or can it be outside of the {}'s?
int
integer
main
variable
0 Voto
3 Respostas
6th Nov 2020, 11:32 PM
amaIeltayib
Any suggestions for this code?
c
main
print
sololearn
1 Voto
3 Respostas
24th Mar 2018, 7:20 AM
Shuvam Lal
Output inside outer loop , innerloop and in main I need a good explanation of the outputs and why??
c++
forloops
1 Voto
1 Resposta
9th Jul 2019, 10:14 PM
Ben ogegbo
I read somewhere that "There can be a C program without the main function" is it possible? If yes then how?
c
cprogramming
curious
help
main
mainfunction
urgent
1 Voto
2 Respostas
17th Jun 2019, 10:20 AM
Nisha Sharma
In codeblocks if we cant take more than one main method in one project. Is there a way i can write more than one code in one pro
c++
code
codeblocks
coding
1 Voto
10 Respostas
30th Sep 2017, 9:23 AM
Farhan Raza
Hi guys from🇳🇬🇳🇬🇳🇬 need help with
java
main
void
-2 Votos
1 Resposta
9th Apr 2022, 2:55 AM
Victor
Hello, could you tell me the difference between the function declared outside main() and inside main()? Thanks in advance! 🙌🏻✨
c
c++
declaration
difference
function
main
main()
scope
6 Votos
9 Respostas
22nd Jan 2021, 2:06 PM
Mahima Rajvir Singh
If I add "public" while defining a variable in main method it shows me error in c#,why?
c#
error
input
0 Voto
1 Resposta
29th Jun 2018, 4:12 PM
Khushboo Gupta
What are the main differences between Javafx and Swing to build GUI? . Excuses for my english
api
code
gui
java
JavaFX
swing
0 Voto
2 Respostas
28th Apr 2017, 4:36 AM
Angel Aguirre
Write a function namely multiply of type int that takes two arguments of type int then call the function in main function. The
jj
-3 Votos
5 Respostas
25th Jan 2021, 5:40 PM
Suhail
How to set a player back to start from an else condition from another class when this is the main loop?
game
java
mainloop
reset
respawn
1 Voto
1 Resposta
2nd Feb 2020, 12:08 AM
Alisa Jääkarhu
If the execution of program starts from main()function, then when is the global variable declared which is written before main ?
global
variable
1 Voto
2 Respostas
14th May 2020, 3:15 PM
Om Prakash Yadav
public static void main (string[ ] args) i have understood little bit that public means for whole method. static? void? main is a method which creates a string array named args. why the name args? please explain and correct if i am wrong?
java
0 Voto
3 Respostas
16th Aug 2016, 2:52 PM
rajat kumar raicha
In what order should i learn the 12 main programing skills? I have learned JavaScript, CSS and HTML help me☺
learning
1 Voto
3 Respostas
3rd Feb 2017, 3:17 AM
Joziah Thayer
Pblic class program { Public static void main .string[ ] args ){ for( x=1 ; x<=100 ; x++ ){ if( x%3=0 && x%4=0)
int
3 Votos
3 Respostas
17th Feb 2018, 12:58 AM
YASH RAJ
Why does blueJ not need String[] args to be passed in main?
java
main
strings
1 Voto
1 Resposta
26th Apr 2017, 3:46 PM
Zakaria Arzoo
Je voulais un coup de main pour savoir pourquoi à chaque fois que j’essaye de faire l’appel de saisie des nombres ça ne passe pa
c
2 Votos
4 Respostas
10th Jan 2020, 11:11 PM
BAYE BARA LAYE GAYE
Java error help : exception in thread main java.lang.arrayindexoutofboundsexception index 5 out of bounds for length 5
code
error
java
0 Voto
1 Resposta
27th Nov 2020, 4:19 AM
TheKaiserUltra V1
How to print output without using main function it should contain user defined libraries which is used?
c++
0 Voto
2 Respostas
3rd Aug 2016, 4:37 PM
vikas sharma
public class in java
class
java
main
public
1 Voto
3 Respostas
26th Jun 2018, 1:12 AM
harshit
How can I make an interactive animation that can be opened and used in my main screen without using a browser ?
css
html
javascript
0 Voto
5 Respostas
26th Jan 2017, 2:11 AM
Brian Hoeft
I'm developing a website, base on school education...n i wonder, what to put in the nav, in the sidebar, main content on load..
1 Voto
5 Respostas
11th May 2017, 7:10 AM
Kelvine De Danielo
why main tag floated right is not showing/working background-color properly without text in that.i want to create layout only.
background-color
float
0 Voto
2 Respostas
26th May 2020, 11:02 AM
Divya Mohan
Please I want to know if we can create objects outside of the main function and why in c++
//
c++
objects
0 Voto
1 Resposta
25th Aug 2022, 9:37 PM
Abban Justice
what happen if I add "main" in "static void sayhello(String name)" as "static void main sayhello(String name)" on the given code
classes
code
java
main
objects
2 Votos
1 Resposta
25th May 2020, 2:29 AM
Ray
I need to know what is the main purpose of becoming an obj of class and const (const MyClass obj;)
c#
c++
constants
2 Votos
2 Respostas
1st Feb 2017, 4:03 PM
Ilidio Jelson Isaac Paulino
Also, why does the code in the examples keep appearing with the main on the bottom? Isnt it supposed to go right after class?
methods
0 Voto
4 Respostas
4th Jul 2020, 7:32 PM
Don
How do we bring image to front while having main image as background, while over one another?
0 Voto
2 Respostas
14th Jun 2016, 9:23 AM
BALTY MONARE
I want to know why make classes? if you can simply make methods in the main class?
classes
java
0 Voto
2 Respostas
4th Sep 2015, 11:20 AM
miguel coy
I am a beginner so can anyone explain if we can use a data type other than int for main function??
beginner
c
functions
1 Voto
1 Resposta
31st Oct 2019, 2:55 AM
Akhil Anand
Faça uma pergunta
Faça uma pergunta
Faça uma pergunta
Faça uma pergunta
< Anterior
1
...
24
25
26
...
29
Próximo >
Quente hoje
Does anyone have the solution for this challenge?
2 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
I am beginner,This is will be right code?
1 Votes
Kernel in Jupyter
2 Votes
Why is it so hard to get a job as a junior dev? Or just wanting to do an internship.
1 Votes
Solved# Survey data format in coding for data
1 Votes
How many days will It takes to completely learn front end
4 Votes
SQL
2 Votes
Solution to solving this bugged problem
2 Votes
JAVA PROGRAMMING
1 Votes