Курсы
Курсы
Компилятор кода
Компилятор кода
Обсуждения
Teams
Войти
Регистрация
Menu
Обсуждения
Поиск
Поиск
Задать вопрос
Задать вопрос
find output with reason:- main() { if(sizeof(int)>-1) printf("Hello"); else printf("Hii") }
c
1 голос
4 ответов
14th Dec 2019, 11:02 AM
Amit Dubey
#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 голос
7 ответов
11th Mar 2020, 9:43 AM
Allepu Madhan mohan
#include <stdio.h> int main() { int x=1?0:2?3:4; printf("%d",x); return 0; }
operators
0 голосов
4 ответов
9th Sep 2020, 5:12 AM
Rohit Ahuja
Why my code doesn't give an error ..?I execute it in online compiler it gives error.
java
main()
1 голос
2 ответов
17th Oct 2020, 9:46 AM
❤☆Nani☆❤
What's the difference between void main() and void main(void)?
c++
0 голосов
3 ответов
30th Jul 2016, 1:32 PM
Hossein Allahresani
How C programs can be run without main() function ?
c
main()
1 голос
2 ответов
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 голосов
39 ответов
24th Nov 2020, 12:36 PM
sumit dubey
#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 голосов
15 ответов
27th Dec 2018, 4:00 AM
Abdul Rahman Khan
How compilar knows to call main() function first???
compiler
functions
0 голосов
1 ответ
14th Mar 2017, 6:26 PM
Swamy Kanuri
#include <iostream> using namespace std; int main() { int x=~1; cout<<x; }
1
0 голосов
7 ответов
13th Jan 2017, 9:17 AM
Hisani msigwa
Can we execute a program without main() in JAVA ?
java
main
main_method()
static
0 голосов
4 ответов
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 голос
5 ответов
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 голосов
12 ответов
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 голосов
5 ответов
11th Jan 2019, 3:05 PM
Devasheesh
#include<stdio.h> int main() { printf("%d", sizeof(void *)); return 0; }
.
0 голосов
1 ответ
17th Aug 2018, 7:41 AM
Shah Kevin
Is it possible run program without main() function in c language
c
cprogram
0 голосов
4 ответов
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 голос
2 ответов
7th Sep 2019, 5:16 PM
Karan Dubey
When do we use iostream.h and void main() etc?
turbo#c++
0 голосов
1 ответ
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 голос
3 ответов
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 голос
23 ответов
7th Feb 2021, 3:48 AM
Ankit Kumar
How to make use of the following min() function in the main() function?
c++
0 голосов
8 ответов
7th Dec 2019, 12:27 PM
Jack
How come the main() method in java is not final?
java
1 голос
3 ответов
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 голос
8 ответов
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 голосов
3 ответов
8th May 2022, 5:56 PM
Abhishek Thakur
What is void main() in c++ especially main () function.
0 голосов
3 ответов
8th Dec 2017, 1:55 PM
Rahul
Python program that can scramble the letters of a word
def
main()
-2 голосов
4 ответов
9th Jul 2018, 5:53 PM
Mathew p m
is main() in c/c++ a function or a class?
class
function
is
main()
or
0 голосов
2 ответов
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 голосов
2 ответов
2nd Apr 2020, 7:03 AM
BLACK GOD
If we want answer in more then one data type then??
c++
main()
1 голос
2 ответов
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 голосов
3 ответов
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 голос
2 ответов
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 голосов
3 ответов
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 голос
7 ответов
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 голосов
6 ответов
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 голосов
2 ответов
9th Dec 2019, 5:43 AM
Mahmoud Taher
Why do use we void with main() method in java ?
java
main
method
void
0 голосов
3 ответов
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 голосов
1 ответ
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 голосов
30 ответов
26th Jul 2017, 3:04 PM
Nargiza Eshbekova
If we print main() function what will be the output?
help
0 голосов
1 ответ
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 голосов
15 ответов
15th May 2021, 6:24 PM
Vrushabh
Which Main() will execute if there's two Main()'s in java program?
java
main
2 голосов
1 ответ
21st May 2020, 9:13 AM
Nikhil Maroju
#include <iostream> using namespace std; int main() { int a=10,b; b=++a+(++a); cout<<b; return 0; }
c++
increment
5 голосов
9 ответов
28th Aug 2017, 1:07 PM
Rishabh Rai
Whats the difference between void main() and int main()?
c++
0 голосов
1 ответ
10th Jul 2016, 7:39 AM
sourav h
#include <stdio.h> int main() { printf("%d"+1, 123); printf("\n%d\n"); printf("%%d"); return 0; }
c
0 голосов
3 ответов
18th Aug 2017, 4:44 PM
SAURAV KUMAR
C++ Please explain the difference between int main() and int main(void)
c++
intmain
1 голос
1 ответ
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 голосов
7 ответов
22nd Oct 2021, 5:19 AM
Palleni Sasidhar
Where should we use void main() and where should we use int main()??
c++
operators
2 голосов
6 ответов
1st Dec 2016, 1:13 PM
aman
Can't we make a program without main() function in C and C++??
c
c++
1 голос
3 ответов
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 голосов
9 ответов
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 голосов
13 ответов
3rd Jun 2020, 11:19 PM
Christina Hamblin
Задать вопрос
Задать вопрос
Задать вопрос
Задать вопрос
< Предыдущий
1
...
3
4
5
...
10
Следующий >
Актуальное сегодня
Help please?
4 Votes
How to get better with problem-solving and programming
1 Votes
Odd even threads without condition variable
0 Votes
Ejercicio Pytho
0 Votes
What is that z for
0 Votes
Bug on "Java for Beginners Module 3 Quiz"
1 Votes
Suggestions needed
4 Votes
Game development
0 Votes
Write a program to find the strings are in isogram or not
0 Votes
Ruby programming?
3 Votes