Курсы
Курсы
Компилятор кода
Компилятор кода
Обсуждения
Teams
Войти
Регистрация
Menu
Обсуждения
Поиск
Поиск
Задать вопрос
Задать вопрос
#include <iostream> #include <chrono> using namespace std; using namespace std::chrono; int main() { int arr1[10], i, j, temp;
cpp
1 голос
4 ответов
2nd Feb 2020, 7:01 PM
ivy jepkirui
Rearrange the code blocks to form a valid C++ program: #include <iostream> using namespace std; int main() { cout << "Awesome!
c++
-2 голосов
3 ответов
9th Dec 2016, 2:00 AM
Md Ãyõûb
#include"stdio.h" #include"math.h" void main() {int m,i,j; canf("%d",&m); j=sqrt(m); for(i=2,i<=j,i++) if (m%i==0)break
c
-1 голос
1 ответ
27th Mar 2018, 9:41 AM
Clearlove
#include <stdio.h> int main() { int age; printf("enter your age"); scanf("%d"&,>=age); printf("you are eligible for voting"); if
y
0 голосов
3 ответов
4th Nov 2022, 1:09 PM
Udit Singh
#include <stdio.h> int main() { char subject ; printf ("Enter your subject\n"); scanf ("%c", & subject ); switch (subject
case
switch
0 голосов
5 ответов
11th Mar 2021, 7:47 AM
ƊЄƔ ƤƦƛƬƛƤ ƧƖƝƓʆ
#include <stdio.h> int main() { char * s="a string"; char *p=s; while(*p++) printf ("%d",(int)(p-s)); return 0; }
c
0 голосов
1 ответ
24th Dec 2019, 9:44 AM
Somvir Dhaka
function main() { var amount = parseFloat(readLine(), 10); var rate = parseFloat(readLine(), 10); console.l
javascript
0 голосов
1 ответ
5th Aug 2022, 6:44 PM
Umar Ado Isyaku
#include <iostream> using namespace std; int main() { int x=10,y=20; int *ptr = &x; int &ref= y; *ptr++; ref++; cout<<x<<y
c++
code
output
0 голосов
9 ответов
4th Jul 2017, 8:26 AM
Kushagra Agarwal
How can the main() function be overloaded in Java? Can you please explain me the disadvantages of doing so?
main
overloading
1 голос
5 ответов
17th Jun 2018, 7:25 PM
Shashank V Ray
#include <iostream> using namespace std; int main() { int ages[5]; for (int i=0; i<5 ; ++i) { int min=ages[0
c++
1 голос
5 ответов
10th Feb 2021, 5:43 PM
Med Iheb Harbaoui
#include <stdio.h> #include<conio.h> int main() { int x=30; int y=40; int sum=0; clrscr(); sum=x+y; printf ("%d",sum); ret
sum
0 голосов
2 ответов
4th May 2019, 8:30 AM
Prerna Goyal
can anyone show an example program using command line arguments ,utilising the string args[] in main()
java
0 голосов
4 ответов
26th Jul 2016, 9:35 AM
Mohammed Raheez
In java, can we execute our program without main() method? What do you say YES or NO?
java
java-10
jdk
2 голосов
2 ответов
23rd Jun 2018, 6:36 AM
Nilesh Shinde
#include <iostream> using namespace std; int main() { int k=5; int m; m=(m=5)+(++k+k++ + ++k+k++); cout<<m<<" "<<k; return 0; }
c++
cascading
doubt
help
increment
0 голосов
9 ответов
28th Feb 2017, 6:06 AM
Aneesh Satheesh
Write a Program in C++ to add any two numbers and display there sum, without using main() function directly.....
c++
Using
2 голосов
6 ответов
19th Dec 2017, 9:21 AM
Abhishek A. Deshmukh
#include <stdio.h> int main() { int x=4,y,z; y=--x; z=x--; printf("%d",x); return 0; } output value and why ??
c
p
programming
0 голосов
2 ответов
17th Aug 2021, 4:42 PM
PARTHA SARATHI DAS
#include <stdio.h> #include<conio.h> int main() { int a,b; printf("Enter two number"); scanf("%d%d, &a,&b"); printf("The value o
kapil
-4 голосов
4 ответов
31st Oct 2020, 5:22 AM
kapil dahiya
#include <stdio.h> int main() { int a=4; printf ("the value of a is %d,a"); return 0; }
include
0 голосов
2 ответов
8th Apr 2023, 6:17 AM
Suyash Agnihotri
Why is "return 0" written in the end of main() function, and why not anything other than that to be returned?
main
return
2 голосов
8 ответов
9th Mar 2018, 9:39 AM
Amlan Abhilash Mishra
what will be output?? #include<stdio.h> main() { int arr [10]={1,2,3,4,5,6,7,8,9,10}; int *p,*q; q=arr/2; p=arr*2; printf("%d %d",*p,*q); }
c
0 голосов
4 ответов
29th Jun 2016, 8:38 PM
BARUN SARRAF
#include <stdio.h> #define prod(i,j) i*j int main() { int x=3,y=4; printf(" %d \n",prod(x+1,y)); } output :7
c
define
preprocessor
0 голосов
2 ответов
21st Nov 2019, 6:03 PM
mohamed Issati
#include<stdio.h> struct node { char c[5]; }; void main() { struct node n[]={"ABC","TECH"}; printf("%c",n[1].c[1]); }
c
c++
html
java
jquery
query
1 голос
1 ответ
29th Apr 2020, 9:52 AM
Rihaj Mujawar
[solved] Why this error?
c
c++
error
main()
void
3 голосов
2 ответов
1st Oct 2019, 8:58 AM
Arsenic
#include <iostream> using namespace std; int main() { int x=10; int y=x+++x+++x; cout<<y; return 0; }
c++
1 голос
2 ответов
25th Feb 2017, 2:40 PM
kumar Saurav
#include <iostream> using namespace std; int main() { int i=2; i=i++; cout<<"Result : " <<i++ + i++; return 0;}
c
c++
java
math
problem
5 голосов
2 ответов
4th May 2017, 10:32 AM
P∆WAN M∆URY∆
using namespace std; int main() { int x=5.0,negsum; int countneg=0; if(x<0.0) { negsum=negsum+x; countneg=countneg+1; } ret
c++
-1 голос
4 ответов
20th Nov 2016, 7:28 PM
aniket gupta
Can a class be made without having main () in it ?
class
java
main()
0 голосов
2 ответов
28th Nov 2016, 6:17 PM
Ravindra
Why '\n" is used after hello world in given code?#include <stdio.h> int main() { printf("Hello, World!\n"); return 0; }
c
0 голосов
3 ответов
18th Feb 2021, 8:54 AM
Chahit Bhardwaj
Do you know when we return 0 or any value from main() function where does it actually returns to
rtrn0
4 голосов
3 ответов
30th Apr 2017, 2:23 AM
Mohit Rawat
#include<stdio.h> int main() { float i; double j; i=22/7; j=22/7; printf("%f\n%.2f", i,j); return 0; }
c
language
-1 голос
1 ответ
26th Aug 2021, 9:07 PM
Ritik Kumar
#include <stdio.h> int main() { int x=12 , y=15 , z=20; if(x>y<z) printf ("red"); else printf ("green"); return 0; }
c
language
0 голосов
5 ответов
5th May 2021, 3:15 PM
Ritik Kumar
#include <stdio.h> //function declaration int factorial(int num); int main() { int x = 5; printf("The factorial o
pleasehelp
0 голосов
2 ответов
2nd May 2019, 6:57 AM
Rahul Jaiswal
C and C++
c
c++
main()
0 голосов
1 ответ
11th Aug 2018, 2:13 PM
Shreeda Bhat
struct student { int age; int grade; char name[40]; }; int main() { struct student s1 ={ .age = 18,.grade = 7
c
0 голосов
3 ответов
27th Sep 2021, 6:26 AM
Gulafsha Syed
This code is supposed to print the day corresponding to a date..... The main() function is not being executed.....why?
functions
main
python3
1 голос
3 ответов
19th Oct 2019, 9:18 PM
Mohammed Mesum Hussain
1.Can we declare global variables and use it all functions in C ? 2.Can we display a message outside main() in C-language?
basic
c
1 голос
6 ответов
19th Mar 2022, 11:46 AM
Md Saif Ali
Give the ouput and explain #include<iostream.h> void main() { int a =32, *ptr=&a; char ch='A' , &cho=ch; cho+=a; *ptr+=ch; cout<<a<<" "<<ch<<endl; }
c++
cout
void
2 голосов
5 ответов
18th Jul 2016, 12:47 PM
Mahima Rajvir Singh
#include <iostream> using namespace std; int main() { int a=10,c=2,b; b=a>>c; cout<<b; return 0; }
c++
increment
0 голосов
2 ответов
28th Aug 2017, 8:19 AM
Rishabh Rai
What will be the output? #include<stdio.h> main() { char s[ ]="Hello"; int i; for(i=0;s[i];i++) printf("%c%
c++
0 голосов
2 ответов
20th Jul 2017, 7:36 PM
Gauri Konde
#include <stdio.h> int main() { char a[100]; gets(a); printf("You entered: %s", a); return 0; ?
input
output
0 голосов
1 ответ
26th Jul 2019, 1:30 PM
Sugavanam S
Can the main() method be overloaded? or overrided? and what happens when we do so?
java
0 голосов
2 ответов
12th Dec 2016, 6:24 PM
Rishabh
Is there any way to return more than one value from a module to main() or the function in which the module is called?
clanguage
functions
modules
return
value
2 голосов
6 ответов
5th Oct 2019, 3:22 PM
Mohit Saini
What is the final value of y? //Program #include<iostream> using namespace std; int main() { int y; for(y=2;y<=6;y+=2) cout<<y; }
c++
2 голосов
5 ответов
14th Sep 2016, 2:14 PM
Venus
#include<stdio.h> #define MAN(x, y) ((x)>(y)) ? (x):(y); int main() { int i=10, j=5, k=0; k = MAN(++i, j++); printf("%d, %d,
c
program
1 голос
2 ответов
21st Oct 2018, 6:20 PM
LYDIA JENNIFER P
#include <iostream> using namespace std; int main() { int myVariable = 10; cout << myVariable; return 0; }
c++
variables
0 голосов
4 ответов
20th Jun 2017, 10:24 AM
radhalakshmi arjun
How the static main() method can access the another method in another class which is not declared as static?
java
0 голосов
3 ответов
18th Sep 2020, 3:35 PM
Preethi
Why do we write "return 0;" and not anything else (for example NULL) after the int main() function. And if I wanna return exactl
c++
function
main
return
8 голосов
4 ответов
29th Oct 2016, 11:30 AM
Rebeka Asryan
why this output 0 ? #include <iostream> using namespace std; int main() { double x=(7%6)/2*5; cout<<x; }
c++
0 голосов
3 ответов
30th Aug 2016, 5:15 PM
Lekhraj Singh
In c++, why do people use "int main()" instead of "void main() "? Does the former have any advantages over the latter?
c++
cpp
main
question
1 голос
6 ответов
17th Mar 2018, 11:42 AM
binoy john
#include <stdio.h> int main() { int i=4,z=12; if ((i=5) | | (z>50)) printf ("yo\n"); else printf ("no\n"); return 0; }
answer
c
c++
output
reason
0 голосов
1 ответ
10th Aug 2020, 6:39 AM
shubham singh
Задать вопрос
Задать вопрос
Задать вопрос
Задать вопрос
< Предыдущий
1
...
6
7
8
...
10
Следующий >
Актуальное сегодня
What's wrong with this code ? ( Beginner)
2 Votes
Ejercicio Pytho
0 Votes
What is that z for
0 Votes
Bug on "Java for Beginners Module 3 Quiz"
1 Votes
Please rate my code from 1 to 10
2 Votes
Suggestions needed
4 Votes
Write a program to find the strings are in isogram or not
0 Votes
Square Roots
0 Votes
Currently learning C++, I’m getting into socket programming with C++
0 Votes
How to start
0 Votes