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
Is it necessary to assign new typeoftheobject() each time we create one in the main ?
classes
java
0 Votos
2 Respuestas
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 Votos
2 Respuestas
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 Votos
3 Respuestas
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 Votos
3 Respuestas
18th Nov 2016, 12:46 AM
Aidan Toussaint
Why is it giving error in void main?
c++
main
void
1 Voto
2 Respuestas
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 Respuestas
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 Votos
2 Respuestas
9th May 2020, 3:07 PM
Karan Dewangan
int main () { for (int x = 1; x <= 10; x++) { cout << 1 + (rand() % 6) << endl; } }
rand
0 Votos
6 Respuestas
17th May 2020, 9:29 AM
Salini Selvam
if __name__ == '__main__':
code
main
name
python
-1 Voto
2 Respuestas
28th Jun 2021, 3:21 AM
Md Nazim Uddin Sagor
Porque un método debe ser static dentro de la función main?
main
methods
static
2 Votos
1 Respuesta
5th Oct 2017, 4:28 PM
Luis Gerardo Collazos Castro
Why am getting wrong output?
array
c
c++
java
main
output
reverse
5 Votos
6 Respuestas
2nd Oct 2019, 10:24 AM
Maninder $ingh
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 Respuestas
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 Votos
3 Respuestas
6th Nov 2016, 9:07 PM
Galata Hassan
Fundamental Question on C
c
int
main
void
2 Votos
4 Respuestas
6th Feb 2018, 7:28 AM
RAJESH SINHA
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 Respuestas
3rd Nov 2018, 3:54 PM
Harsh Agrawal
In Java Return type lesson , can you reverse main , and put it first ?
java
main
method
return
0 Votos
1 Respuesta
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 Votos
1 Respuesta
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 Respuestas
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 Respuestas
20th Jul 2016, 4:09 PM
Mubarak O. Aderogba
Do you have to have "int Variable = #;" in int main() or can it be outside of the {}'s?
int
integer
main
variable
0 Votos
3 Respuestas
6th Nov 2020, 11:32 PM
amaIeltayib
Any suggestions for this code?
c
main
print
sololearn
1 Voto
3 Respuestas
24th Mar 2018, 7:20 AM
Shuvam Lal
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 Respuestas
30th Aug 2017, 2:21 PM
harsh kathiriya
Output inside outer loop , innerloop and in main I need a good explanation of the outputs and why??
c++
forloops
1 Voto
1 Respuesta
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 Respuestas
17th Jun 2019, 10:20 AM
Nisha Sharma
Hi guys from🇳🇬🇳🇬🇳🇬 need help with
java
main
void
-2 Votos
1 Respuesta
9th Apr 2022, 2:55 AM
Victor
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 Respuestas
30th Sep 2017, 9:23 AM
Farhan Raza
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 Respuestas
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 Votos
1 Respuesta
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 Votos
2 Respuestas
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 Respuestas
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 Respuesta
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 Respuestas
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 Votos
3 Respuestas
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 Respuestas
3rd Feb 2017, 3:17 AM
Joziah Thayer
Why does blueJ not need String[] args to be passed in main?
java
main
strings
1 Voto
1 Respuesta
26th Apr 2017, 3:46 PM
Zakaria Arzoo
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 Respuestas
17th Feb 2018, 12:58 AM
YASH RAJ
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 Respuestas
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 Votos
1 Respuesta
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 Votos
2 Respuestas
3rd Aug 2016, 4:37 PM
vikas sharma
public class in java
class
java
main
public
1 Voto
3 Respuestas
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 Votos
5 Respuestas
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 Respuestas
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 Votos
2 Respuestas
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 Votos
1 Respuesta
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 Respuesta
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 Respuestas
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 Votos
4 Respuestas
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 Votos
2 Respuestas
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 Votos
2 Respuestas
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 Respuesta
31st Oct 2019, 2:55 AM
Akhil Anand
Haz una pregunta
Haz una pregunta
Haz una pregunta
Haz una pregunta
< Anterior
1
...
24
25
26
...
29
Siguiente >
En tendencia hoy
Void functional void with bool function
0 Votes
Are websites hackable?
1 Votes
Python
1 Votes
TICTACTOE
0 Votes
C# and sql
1 Votes
Error
0 Votes
Learn python
0 Votes
Help for study
0 Votes
BIG DOUBT🤔🤔🤔🤔
0 Votes
Need help (French)
0 Votes