Cours
Cours
Compilateur de code
Compilateur de code
Discuter
Tarification
Équipes
Se connecter
S'inscrire
Menu
Discussions Q&R
Chercher
Chercher
Poser une question
Poser une question
Why my code doesn't give an error ..?I execute it in online compiler it gives error.
java
main()
1 Vote
2 Réponses
17th Oct 2020, 9:46 AM
❤☆Nani☆❤
#include <stdio.h> int main() { int x=1?0:2?3:4; printf("%d",x); return 0; }
operators
0 Vote
4 Réponses
9th Sep 2020, 5:12 AM
Rohit Ahuja
#include <stdio.h> #include <string.h> int main() { char a[100]; int i,j,b=0,c; gets(a); c=strlen(a); for(i=0;i<c;i++)
c
1 Vote
7 Réponses
11th Mar 2020, 9:43 AM
Allepu Madhan mohan
What's the difference between void main() and void main(void)?
c++
0 Vote
3 Réponses
30th Jul 2016, 1:32 PM
Hossein Allahresani
How C programs can be run without main() function ?
c
main()
1 Vote
2 Réponses
20th Jul 2017, 6:57 PM
Soumyadeep Debnath
#include <stdio.h> #include <conio.h> void main() { clrscr(); int A, B, C; A=5; if(A>5) { }printf ("\n A is greater than
ok
-5 Votes
39 Réponses
24th Nov 2020, 12:36 PM
sumit dubey
How compilar knows to call main() function first???
compiler
functions
0 Vote
1 Réponse
14th Mar 2017, 6:26 PM
Swamy Kanuri
#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 Votes
15 Réponses
27th Dec 2018, 4:00 AM
Abdul Rahman Khan
#include <iostream> using namespace std; int main() { int x=~1; cout<<x; }
1
0 Vote
7 Réponses
13th Jan 2017, 9:17 AM
Hisani msigwa
Can we execute a program without main() in JAVA ?
java
main
main_method()
static
0 Vote
4 Réponses
18th Mar 2018, 7:50 PM
Wasim Abbasi
#include <stdio.h> int main() { float f1=0.1; if(f1==0.1) printf ("hello"); else printf ("hi"); }
if-statements
1 Vote
5 Réponses
22nd Jun 2019, 5:16 PM
Rohit Ahuja
Can we call one function into another function in C language?(not in main() one)
clanguage
function
0 Vote
12 Réponses
12th May 2021, 9:50 AM
Sanchit Pahwa
#include <stdio.h> int main() { int n; for(n=7;n!=0;n--) { printf ("n = %d",n--);} getchar(); return 0; }
c
loops
-2 Votes
5 Réponses
11th Jan 2019, 3:05 PM
Devasheesh
#include<stdio.h> int main() { printf("%d", sizeof(void *)); return 0; }
.
0 Vote
1 Réponse
17th Aug 2018, 7:41 AM
Shah Kevin
Is it possible run program without main() function in c language
c
cprogram
0 Vote
4 Réponses
27th Nov 2021, 4:30 PM
Nitesh Rauniyar
#include<stdio.h> int main() { int i=2; printf("%d, %d\n", ++i,++i); return 0; }
c
-1 Vote
2 Réponses
7th Sep 2019, 5:16 PM
Karan Dubey
When do we use iostream.h and void main() etc?
turbo#c++
0 Vote
1 Réponse
3rd Feb 2019, 3:55 PM
Heath Ledge
#include <stdio.h> int main() { float a=0.7; if(0.7>a) printf("hi"); else printf("hello"); }
if-statements
1 Vote
3 Réponses
24th Jul 2019, 12:53 PM
Rohit Ahuja
include <stdio.h> int main() { unsigned int i; int count=0; for (i=0;i<10;i--) { count++; } printf("%d ",count); return
c?
in
-1 Vote
23 Réponses
7th Feb 2021, 3:48 AM
Ankit Kumar
How to make use of the following min() function in the main() function?
c++
0 Vote
8 Réponses
7th Dec 2019, 12:27 PM
Jack
How come the main() method in java is not final?
java
1 Vote
3 Réponses
3rd May 2017, 1:57 PM
Thanh Le
Why can't we use the void main() function in the hello world program??
c++
helloworld
1 Vote
8 Réponses
20th Oct 2018, 11:10 AM
Ramya Devi Nataraj
Python program that can scramble the letters of a word
def
main()
-2 Votes
4 Réponses
9th Jul 2018, 5:53 PM
Mathew p m
#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 Vote
3 Réponses
8th May 2022, 5:56 PM
Abhishek Thakur
What is void main() in c++ especially main () function.
0 Vote
3 Réponses
8th Dec 2017, 1:55 PM
Rahul
is main() in c/c++ a function or a class?
class
function
is
main()
or
0 Vote
2 Réponses
18th Feb 2017, 3:02 AM
just_fact
int main() { int i=0,j=1; for(i;i<5;i++); j=i+j; cout<<j; return 0; }
c++
0 Vote
2 Réponses
2nd Apr 2020, 7:03 AM
BLACK GOD
If we want answer in more then one data type then??
c++
main()
1 Vote
2 Réponses
28th Jun 2019, 5:49 PM
Sahil P Gaonkar
main() { int x; scanf("%d",&x); printf("square of %d is %d"x,x*x); }
what's
wrong
0 Vote
3 Réponses
18th Jan 2021, 10:48 PM
Saurabh Kushwaha
#include<stdio.h> int main() { int num1,num2,product; printf("Enter two numbers:"); scanf("%d %d",&num1
c
in
multiplication
1 Vote
2 Réponses
5th Mar 2021, 6:47 AM
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ
#include <stdio.h> int main() { int a=1; printf ("%d%d%d",a,++a,a++); return 0; }
c
logic
0 Vote
3 Réponses
6th Apr 2022, 4:42 PM
Janvi Desai
Does it matter if a user-defined function is defined before main() or after in C?
c
c++
functions
main
1 Vote
7 Réponses
13th May 2021, 5:54 PM
Anthony Asiimwe
#include <iostream> using namespace std; int main() { int x=5 , y=6; if (++x>4 ||++y<8) { cout <<x<<y<<endl;
c++
3 Votes
6 Réponses
16th Aug 2018, 11:46 AM
Jakhongir
#include<iostream.h> int main() { for(int i=0; i<10; i++) if(i&2) cout<<i; }
<?>
0 Vote
2 Réponses
9th Dec 2019, 5:43 AM
Mahmoud Taher
Why do use we void with main() method in java ?
java
main
method
void
0 Vote
3 Réponses
13th Jun 2018, 8:42 AM
Guddu Kumar
#include <stdio.h> int main() { int x=7%4*3/2; printf("%d \n",x); return 0;}
c
language
0 Vote
1 Réponse
12th Sep 2023, 8:00 AM
ANKIT RAJ
Why output of this code is 10? int main() { int a=4,b; b=a+ ++a; cout<<b; return 0; }
cpp
5 Votes
30 Réponses
26th Jul 2017, 3:04 PM
Nargiza Eshbekova
If we print main() function what will be the output?
help
0 Vote
1 Réponse
28th May 2019, 12:23 PM
Lhendu Len's
#include <stdio.h> // Now define main function int main() { int i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;j++) {
c
c++
javascript
python
ruby
-2 Votes
15 Réponses
15th May 2021, 6:24 PM
Vrushabh
Which Main() will execute if there's two Main()'s in java program?
java
main
2 Votes
1 Réponse
21st May 2020, 9:13 AM
Nikhil Maroju
Whats the difference between void main() and int main()?
c++
0 Vote
1 Réponse
10th Jul 2016, 7:39 AM
sourav h
#include <iostream> using namespace std; int main() { int a=10,b; b=++a+(++a); cout<<b; return 0; }
c++
increment
5 Votes
9 Réponses
28th Aug 2017, 1:07 PM
Rishabh Rai
#include <stdio.h> int main() { printf("%d"+1, 123); printf("\n%d\n"); printf("%%d"); return 0; }
c
0 Vote
3 Réponses
18th Aug 2017, 4:44 PM
SAURAV KUMAR
C++ Please explain the difference between int main() and int main(void)
c++
intmain
1 Vote
1 Réponse
10th Jan 2020, 4:15 AM
program
include <stdio.h> int main() { int b=7,a; a=b++ + ++b+b++ ; printf ("%d\n",a); return 0; }
@sololearn
2 Votes
7 Réponses
22nd Oct 2021, 5:19 AM
Palleni Sasidhar
Where should we use void main() and where should we use int main()??
c++
operators
2 Votes
6 Réponses
1st Dec 2016, 1:13 PM
aman
Can't we make a program without main() function in C and C++??
c
c++
1 Vote
3 Réponses
20th Aug 2019, 5:03 AM
Sanjaya Acharya
include <stdio.h> int main() { char i=0; switch(i) { case '0': printf ("c"); break;
hh
0 Vote
9 Réponses
7th Jan 2021, 8:50 AM
Ankit Kumar
What is the difference in int main(void) and no return 0; and int main() with return 0; ?
c
code
0 Vote
13 Réponses
3rd Jun 2020, 11:19 PM
Christina Hamblin
void main() { int j[10]={9,7,5,3,1,2,4,6,9}; int i=1; clrscr(); for(;i<9;i++) printf("%d ",--j[i++]); getch(); }
c++
0 Vote
6 Réponses
7th Jul 2017, 7:29 PM
Munmun Bhandari
Poser une question
Poser une question
Poser une question
Poser une question
< Précédent
1
...
3
4
5
...
10
Suivant >
Aujourd'hui en vedette
Why is it so hard to get a job as a junior dev? Or just wanting to do an internship.
1 Votes
Kernel in Jupyter
2 Votes
How many days will It takes to completely learn front end
4 Votes
SQL
2 Votes
JAVA PROGRAMMING
2 Votes
Solution to solving this bugged problem
2 Votes
What Does Pseudo Elements Mean.
2 Votes
HTML/CSS questions
0 Votes
IMAGE
0 Votes
Html
1 Votes