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
Constructors in C++
c
c++
classes
constructors
functions
main
0 Votes
2 Answers
18th Aug 2018, 5:31 PM
MANISH JHA
In java what is the purpose of putting the keyword "public" in main method? Why we do not put the word "public" in user defined methods?
java
public
-1 Vote
4 Answers
29th Aug 2016, 9:23 AM
Jia Wei Sim
#include <iostream. #include <cstdlib> using namespace std; int main () { srand(98); for (int x = 1; x <= 10; x++) {
c++
rand
0 Votes
2 Answers
14th Jan 2017, 6:42 PM
gyana nayak
String[]args
main
parameter
string[]args
void
0 Votes
1 Answer
21st Feb 2019, 4:53 PM
Prathmesh Agashe
how to write hello world without semicolon in java?
hello
java
main
semicolon
0 Votes
2 Answers
21st Jan 2017, 8:04 PM
Ajay Bhoi
How to pass an array using call by value ? { I have declared an array locally in main and don't want its value to be modified by some other function}
c++
2 Votes
4 Answers
13th Sep 2016, 6:31 PM
Simant |Kingpin|
Please when use int main() please return int
data-types
int
main
quiz
return
2 Votes
2 Answers
13th Jul 2017, 12:33 PM
Chokri ZAGROUBA
int main()
c++
int
main
variables
0 Votes
2 Answers
9th Feb 2017, 11:06 PM
Panas Trak
Error:Could not find or load java main class , why show error ,i change my drive and my class name is same ,
java
0 Votes
2 Answers
6th Feb 2017, 7:47 AM
Abhiii
What is the main difference between HTML and HTML 5 ?? And what are the benefits of HTML 5 ?? plz explain .... waiting Thank You .
html
html5
0 Votes
3 Answers
4th Jun 2016, 5:55 AM
Prathamesh Kinare
As static method can access only static data members & methods so how we can manipulate non-static data inside main method ?
java;
methods
static
0 Votes
1 Answer
14th Jan 2017, 10:11 AM
Atish Kadu
What is the difference between return 0 in the end of main code and return 0 in the end of function code
return
value
0 Votes
1 Answer
16th Aug 2018, 2:16 PM
Kondepati Bhavana
What is the difference between return 0 in the end of main code and return 0 in the end of function code
return
value
0 Votes
1 Answer
16th Aug 2018, 2:15 PM
Kondepati Bhavana
I'm not getting how to give the value to the size of array in main method?????.and how pass array value...findNumber is static
java
0 Votes
1 Answer
11th Dec 2017, 7:25 AM
Zameer shaikh
IF our brain is programed then main statement of programing language will "what happens next" answer in your believe yes or no?
brain
language
mind
programing
1 Vote
1 Answer
17th Jul 2017, 1:08 PM
Ranjodh Singh
z value is 5 in main function,but after calling fun function z value become 15 in fun function.can anyone syggest the answer....
c
0 Votes
1 Answer
22nd Feb 2018, 8:35 PM
Anand Namastemath
Write the function to calculate the factorial value of any integr argument call function from man() and print the result in main
c++
0 Votes
1 Answer
31st Dec 2016, 3:09 PM
rag
I am new to Python,i can't understand python is oops concept based language but we don't have to create any classor main method
java
oops
python
0 Votes
2 Answers
11th May 2017, 2:21 PM
Harshit Kaushik
I want to pass an average to a function. When I use in the main printf with %d I get the average but if I use %f I got 0.Why? Tk
advise
average
c
0 Votes
4 Answers
10th Jan 2019, 6:32 PM
Maria
if __name__ == "__main__":
main
name
python
script
top-level
1 Vote
2 Answers
2nd Dec 2017, 1:18 PM
Aref moloughi
What is the difference between int, where I write under using namespace std; and then I write it after int main ( ) { };
()
after
c++
int
main
namespaces
std;
under
using
vs
0 Votes
1 Answer
3rd Sep 2020, 7:04 PM
Mr-Powerful
Happy moments Guys 😁 Exception in thread "main" error handling?
exception
in
main
thread
0 Votes
1 Answer
13th Dec 2017, 4:30 PM
UbuUunTu✔️
How do Php language makers make money?
main
makers
money
promamminglanguages
1 Vote
1 Answer
7th Oct 2017, 12:44 AM
Rifat
Error need help After I compiled my program on command prompt I tried to run the program but it did not work It said "Error could not find or load main class" Could someone plz tell me what to put as my path classpath and javahome Thanks in advance.
cmd
error
java
0 Votes
16 Answers
7th Sep 2016, 10:41 PM
Chuckinator
How can I add a programme in a html body?
else-statements
if-statements
int
main
print
scan
1 Vote
3 Answers
3rd Jun 2019, 5:04 PM
Monirul Islam
What is the best course to learn after html?
basics
certificate
code
html
html5
main
scripting-languages
self-learning
sololearn
2 Votes
6 Answers
16th Apr 2020, 4:52 AM
Cassandra Sawden
What is Static method in java?
class
instance
java
main
method
run
sololearn
static
2 Votes
5 Answers
6th May 2018, 1:25 PM
Suraj Jha
Write a program in C++ and start with int main(). . and end with return 0 .. if we remove 0 with another number ..
c++
compile
error
function
main
operation
return
warning
6 Votes
4 Answers
1st May 2017, 8:36 AM
P∆WAN M∆URY∆
What is your main reason why u want programming? Let us kwn what we want not jst to kwn programming and it goes in veins.
friends
sololearn
2 Votes
1 Answer
17th Jun 2017, 10:02 PM
Stephen Mumbi
Y would i want to use getters and setters when i can assign the value of a property from inside the main class?
java
0 Votes
1 Answer
13th Jun 2017, 4:55 AM
suryapoojary
How to have the main camera in unity to get the reference of the local player clone object spawn by the network manager?
games
manager
network
player
reference-types
-1 Vote
1 Answer
22nd Mar 2017, 5:51 PM
Arthur Kevin Williams
If integer a is declared in main method and line below it is (int z=test(out a)) so what is the value of x?
c#
-1 Vote
2 Answers
16th Jan 2017, 12:15 PM
Aniket Patil
main method takes an array of strings as parameter but it is not called from any method so how can it takes parameters?
java
methods
0 Votes
1 Answer
1st Oct 2016, 2:07 PM
PANKAJ SINGH
Learning C# here for game development?
c#
main
Namespace
start
unity
void
3 Votes
2 Answers
22nd Jan 2017, 9:17 AM
Shmolin
What is -public , static , void , main, in java language?? I MEAN WHAT ARE THEIR MEANINGS
java
main
public
static
void
1 Vote
2 Answers
5th Aug 2017, 12:59 PM
Avash Mitra
I had a doubt. Why in java all the lines even the main function need to be inside the class? Can anyone help me
java
0 Votes
2 Answers
16th Dec 2017, 2:21 AM
lokesh krishna
Help me to correct the code or tell the mistakes, pls!!!
c++
char
conio
float
int
main
oder
string
strlen
strtok
0 Votes
8 Answers
28th Feb 2020, 4:46 PM
Anastasiia Kudria
Please explain what is a void? And how to use it? Please
c
c++
functions
int
main
void
3 Votes
2 Answers
28th Jul 2017, 10:13 AM
Yasir Faiz Ahmed
My project topic is data mining Know i decide main recent topic for further data analysis anyone help me to tell that topic .
data
mining
1 Vote
1 Answer
1st Sep 2017, 9:20 AM
kaish mann
In this why use "using std; " I am started with conio.h why use int main why not use clrscr why use return 0 why not use getch
c++
1 Vote
2 Answers
11th Mar 2018, 6:52 PM
Sukesh Kumar
why in this case we call the function in Main like that " int result = sum(x, y);" why no by just typing sum(x,y)?
c++
function-arguments
functions
0 Votes
1 Answer
11th Mar 2017, 10:46 AM
Matej Čalić
I need to take Input from main and use it to populate a array inside of a class example of what Im working with bellow
arrays
c#
classes
0 Votes
2 Answers
2nd Dec 2017, 7:31 PM
kenneth Stanley
WAP in c++ a class name item that contain 2 variable and cost in pvt sec & put and create a obj in main print no. Of cost
c++
classes
function-arguments
functions
generators
objects
print
public
0 Votes
1 Answer
18th Jun 2021, 3:20 AM
Kartik Yadav
Can there be recursive use of main?
c
c++
classes
java
main
objects
2 Votes
2 Answers
13th Nov 2016, 8:00 PM
sanket jain
How is do the model of few shot learning?
al
data
data-science
data-types
main
tensorflow
1 Vote
2 Answers
23rd Jul 2019, 11:03 PM
Braulio Romero Beltrán
Need help with my Scanner.
error
error,
exception
help
java
javaerror
main
1 Vote
2 Answers
13th Jan 2019, 5:10 AM
Dylan Smith
in java every processing occurs inside main method. what happens if we exclude (String[] args) and make it as ()??can declare main() method like normal methods for other purposes. if so would overloading be taken place?
java
methods
0 Votes
5 Answers
26th Sep 2016, 11:34 AM
riyas
Realizar problema propuesto: Análisis del problema, Diag. De flujo, prueba de escritorio y código en c++
include
int
iostream
main
swift
-1 Vote
1 Answer
6th Jul 2020, 12:47 PM
Kevin Salguero
I cannot understand this syntax error...
#error
#python
#syntax
functions
main
0 Votes
1 Answer
13th May 2021, 11:23 AM
OmerA
Is it necessary to declare PSVM inside class? Can we declare PSVM without class in java?
classes
experts
help
java
main
psvm
void
0 Votes
4 Answers
10th Jul 2018, 8:33 AM
Sukhbir Singh Khalsa
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
27
28
29
Next >
Hot today
[SOLVED] Average Word Length Challenge
1 Votes
[Solved] Camel to Snake Python Coding Challenge
1 Votes
Can we convert website into app
2 Votes
Jobs
3 Votes
Help! Images! HTML!
0 Votes
The output is not working in C++. The code is good.
0 Votes
Python core exercise (task ) or bug -Club access man older 18 y.o.
0 Votes
Why are my 2 radio buttons not linked
1 Votes
I need help with python code
0 Votes
HML and JavaScript
2 Votes