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
find output with reason:- main() { if(sizeof(int)>-1) printf("Hello"); else printf("Hii") }
c
1 Voto
4 Respuestas
14th Dec 2019, 11:02 AM
Amit Dubey
Why my code doesn't give an error ..?I execute it in online compiler it gives error.
java
main()
1 Voto
2 Respuestas
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 Votos
4 Respuestas
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 Voto
7 Respuestas
11th Mar 2020, 9:43 AM
Allepu Madhan mohan
What's the difference between void main() and void main(void)?
c++
0 Votos
3 Respuestas
30th Jul 2016, 1:32 PM
Hossein Allahresani
How C programs can be run without main() function ?
c
main()
1 Voto
2 Respuestas
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 Votos
39 Respuestas
24th Nov 2020, 12:36 PM
sumit dubey
How compilar knows to call main() function first???
compiler
functions
0 Votos
1 Respuesta
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 Votos
15 Respuestas
27th Dec 2018, 4:00 AM
Abdul Rahman Khan
#include <iostream> using namespace std; int main() { int x=~1; cout<<x; }
1
0 Votos
7 Respuestas
13th Jan 2017, 9:17 AM
Hisani msigwa
Can we execute a program without main() in JAVA ?
java
main
main_method()
static
0 Votos
4 Respuestas
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 Voto
5 Respuestas
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 Votos
12 Respuestas
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 Votos
5 Respuestas
11th Jan 2019, 3:05 PM
Devasheesh
#include<stdio.h> int main() { printf("%d", sizeof(void *)); return 0; }
.
0 Votos
1 Respuesta
17th Aug 2018, 7:41 AM
Shah Kevin
Is it possible run program without main() function in c language
c
cprogram
0 Votos
4 Respuestas
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 Voto
2 Respuestas
7th Sep 2019, 5:16 PM
Karan Dubey
When do we use iostream.h and void main() etc?
turbo#c++
0 Votos
1 Respuesta
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 Voto
3 Respuestas
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 Voto
23 Respuestas
7th Feb 2021, 3:48 AM
Ankit Kumar
How to make use of the following min() function in the main() function?
c++
0 Votos
8 Respuestas
7th Dec 2019, 12:27 PM
Jack
How come the main() method in java is not final?
java
1 Voto
3 Respuestas
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 Voto
8 Respuestas
20th Oct 2018, 11:10 AM
Ramya Devi Nataraj
#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 Votos
3 Respuestas
8th May 2022, 5:56 PM
Abhishek Thakur
Python program that can scramble the letters of a word
def
main()
-2 Votos
4 Respuestas
9th Jul 2018, 5:53 PM
Mathew p m
What is void main() in c++ especially main () function.
0 Votos
3 Respuestas
8th Dec 2017, 1:55 PM
Rahul
is main() in c/c++ a function or a class?
class
function
is
main()
or
0 Votos
2 Respuestas
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 Votos
2 Respuestas
2nd Apr 2020, 7:03 AM
BLACK GOD
If we want answer in more then one data type then??
c++
main()
1 Voto
2 Respuestas
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 Votos
3 Respuestas
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 Voto
2 Respuestas
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 Votos
3 Respuestas
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 Voto
7 Respuestas
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 Votos
6 Respuestas
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 Votos
2 Respuestas
9th Dec 2019, 5:43 AM
Mahmoud Taher
Why do use we void with main() method in java ?
java
main
method
void
0 Votos
3 Respuestas
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 Votos
1 Respuesta
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 Votos
30 Respuestas
26th Jul 2017, 3:04 PM
Nargiza Eshbekova
If we print main() function what will be the output?
help
0 Votos
1 Respuesta
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 Votos
15 Respuestas
15th May 2021, 6:24 PM
Vrushabh
Which Main() will execute if there's two Main()'s in java program?
java
main
2 Votos
1 Respuesta
21st May 2020, 9:13 AM
Nikhil Maroju
Whats the difference between void main() and int main()?
c++
0 Votos
1 Respuesta
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 Votos
9 Respuestas
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 Votos
3 Respuestas
18th Aug 2017, 4:44 PM
SAURAV KUMAR
C++ Please explain the difference between int main() and int main(void)
c++
intmain
1 Voto
1 Respuesta
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 Votos
7 Respuestas
22nd Oct 2021, 5:19 AM
Palleni Sasidhar
Where should we use void main() and where should we use int main()??
c++
operators
2 Votos
6 Respuestas
1st Dec 2016, 1:13 PM
aman
Can't we make a program without main() function in C and C++??
c
c++
1 Voto
3 Respuestas
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 Votos
9 Respuestas
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 Votos
13 Respuestas
3rd Jun 2020, 11:19 PM
Christina Hamblin
Haz una pregunta
Haz una pregunta
Haz una pregunta
Haz una pregunta
< Anterior
1
...
3
4
5
...
10
Siguiente >
En tendencia hoy
Steps in thread step by step with dependent result
1 Votes
Why does it disappear?
0 Votes
What's wrong with my code?
1 Votes
OOP python questions
0 Votes
How to create games and it to Play store
0 Votes
Web page
0 Votes
Python loops
0 Votes