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
what is the size of operate? assume size of (int)=2 #include <iostream. h> using namespace std ; class test { int x_ ; int y_; } ; int main() { test t ; court<<size of (t)<<" ; }
c++
-1 Vote
2 Réponses
12th Aug 2016, 8:37 AM
Santhosha S R
We can use the loop for inside the sentence switch?
for
int
switch
1 Vote
9 Réponses
28th Aug 2018, 5:54 PM
Axel Andrés Cruz Córdova
What does "0x..." mean in Integer declaration
int
java
0 Vote
2 Réponses
26th Apr 2020, 9:22 AM
Mark Etale
CREATE TABLE Users ( id int NOT NULL AUTO_INCREMENT, username varchar(40) NOT NULL, password varchar(10) NOT NULL, PRIMARY
sql
tables
3 Votes
6 Réponses
14th Jul 2017, 2:24 PM
Ramesh
Y iam not getting address of the variable in printf("\n%u",a); where a is declared as int ..
sea
0 Vote
6 Réponses
18th May 2020, 6:37 PM
Eliyas ahamad Shaik
Why this is error in c++ int a=08; float b=09;int double c= 02; // this error not exit in c#
initialization
variable
1 Vote
10 Réponses
5th Aug 2018, 7:52 AM
Blacked False Positive
Can anyone explain me which one will take more memory int or Integer and why?
java
1 Vote
2 Réponses
15th Dec 2019, 6:22 AM
Vijay Shyam Sharma
#include <stdio.h> int main () { char s1[20]="java"; printf ("progming = %s",s1); printf ("\nprogming=%s",strrev(s1)); retur
include<stdio.h>int
ma
-1 Vote
5 Réponses
10th May 2021, 3:35 AM
Deep patel
import java.util.*; class Program { public static void main(String[] args) { int ch; float usd,inr;
java
0 Vote
5 Réponses
28th Jun 2017, 2:17 PM
Rajan Khorasiya
How to access a variable in a complete program?
a
int
-1 Vote
4 Réponses
2nd Feb 2019, 8:19 AM
Fahad Hasan
How to take input of an integer consist of 30+ digit ?
input
int
3 Votes
2 Réponses
3rd Oct 2017, 7:39 AM
Devesh Shakya
Why not we are use "void main " instead of int main?
c++
-2 Votes
4 Réponses
20th Sep 2017, 5:44 AM
blackcat
Hello Guys,I need a code to append int values in a list, untill we enter the nagetive value.
lists
python3
0 Vote
7 Réponses
20th Feb 2022, 9:35 AM
S GOUSE BASHA
#include <iostream> using namespace std; int main() { //modify the given statement cout << "C++"; return 0; }
solo
0 Vote
6 Réponses
5th Nov 2021, 8:44 AM
Eman Mohamed Salem Mohamed
What's the difference between int num = 42 and var num = 42 ?
c#
variables
0 Vote
3 Réponses
17th Jul 2016, 3:30 AM
Mo.Alizadeh
Why not we use void as a main function rather than using int
c++
0 Vote
2 Réponses
26th Jun 2019, 11:43 AM
Manthan
#include <iostream> using namespace std; int main() { int a = 100; a = 50; cout << a; a = 12; cout << a; return 0; } this code shows output as 5012 why isn't it showing 12? please help
c++
variables
0 Vote
10 Réponses
14th Aug 2016, 6:16 PM
Harshit
Why can't we use void main insted of int main as taught in our school
c++
0 Vote
5 Réponses
5th Oct 2016, 1:36 AM
Vibhu
Why we use int main( ) in some program s in place of void main?
c
language
0 Vote
3 Réponses
27th Oct 2019, 6:15 PM
Sunny Aitha
In python ; instead of using the #float and #int functions after reading a numeric value, can the #eval function be used ?
eval
float
int
5 Votes
4 Réponses
3rd May 2019, 9:36 PM
Abdelkader Barraj عبد القادر البراج
Hey...guys..I have a doubt...How to call the input in java?I am coding....the program compiles int x=5...or something..How to co
input
java
0 Vote
11 Réponses
7th Jul 2017, 7:50 AM
Mr.kk
what is the situation to use void? can we replace void with int ?
c++
functions
1 Vote
3 Réponses
9th Dec 2016, 9:41 AM
sandeep varma yavanamanda
int res=0; for(int i=1;i<10;i+=3) { if(10/i==2) continue; res += i; } cout<<res<<endl;
explain
program
0 Vote
1 Réponse
22nd May 2020, 2:38 PM
Karan Dewangan
output is greater why??
int
unsignedint
0 Vote
3 Réponses
22nd May 2019, 10:02 AM
Dee Pan Kar
Why it shows Error
int
lists
0 Vote
2 Réponses
23rd Mar 2020, 11:09 AM
Khaled Sherif
What is the difference between
casting
int
0 Vote
3 Réponses
20th Aug 2018, 7:34 PM
Jazun Munro
#include <stdio.h> struct student{ char *c; }; int main() { struct student s[2]; printf("%ld",sizeof(s)); return 0; }
struct
0 Vote
5 Réponses
11th Sep 2020, 8:20 AM
Rohit Ahuja
Is there any difference between *p = &a And int *p ; p=&a;
c++
pointers
1 Vote
2 Réponses
15th Mar 2017, 9:25 AM
Jatin Grover
Why final value of I is 0 in following code Int I=0;I=I++; ?
java
0 Vote
3 Réponses
28th Jul 2017, 11:42 AM
vineel kumar
1.How to add a feature that will collect custom input. 2.How to convert double to int
hel
jav
thezaa
1 Vote
2 Réponses
14th Jan 2021, 2:47 PM
Герман Папанов(הרמן פפנוב)
¿Se puede hacer 2 problemas en un mismo programa?
c
int
main
return
3 Votes
16 Réponses
24th Apr 2018, 7:02 PM
MatíasEzequiel
I have tried the postfix in my Xamarin studio and the code is like int x = 2; int y = x++; then WHAT would be the output??
c#
operators
1 Vote
2 Réponses
20th May 2017, 7:50 AM
Emranul haque
#include <iostream using namespace std; int main(a= 2); { while(a <=100) cout<<"this is even"<< a << ln; }
c++
0 Vote
9 Réponses
28th Jan 2017, 5:33 AM
Scooby Doo
class Calc { char Grade; int Bonus; public: Calc() {Grade=’E’; Bonus=0; } void Down ( int G ) { Grade - = G; } void Up (
transition
-3 Votes
3 Réponses
31st Oct 2017, 2:21 PM
pankaj kumar
what is reason foe returning any value in the int main()?
int
main
1 Vote
1 Réponse
20th Jul 2017, 4:54 PM
Sonani Meet
can't we use void main instead of int main in programs
c++
0 Vote
1 Réponse
10th Oct 2017, 8:51 AM
arshpreet
How do you use str and int in the same input
python3
1 Vote
1 Réponse
4th Aug 2017, 9:36 AM
Daniel Robertson
Why do we preffer writing int main() instead of void main()...?
c
cpp
function
main
return_type
1 Vote
1 Réponse
25th Sep 2017, 5:44 PM
Ankur Pashine
Please help decribe the below code where solve(grade) is int array
3rd
able
line
not
to
understand
0 Vote
1 Réponse
1st Mar 2018, 1:08 PM
Bahubali
int i=1,j=0,n=0; while(i<4) { for(j=1;j<=i;j++){ n+=1; } i=i+1; } system out.printIn(n);
code
fragments
-6 Votes
2 Réponses
28th Mar 2017, 5:12 PM
Arpit Gupta
How can I change between variable types?
c++
float
int
2 Votes
9 Réponses
31st Jul 2017, 2:34 AM
Richard Appleton
The literal 09 of type int is out of range, what does it mean?
#integer
#java
#literal
0 Vote
2 Réponses
26th Mar 2022, 1:54 AM
Purpy 🌟
How can i set length of any strings int to parameters of any return method ?
java
1 Vote
3 Réponses
19th Oct 2019, 7:22 PM
VikaSh YadaV
int in C and in Java Is Void Both are variable are same ?? Na??
c
java
0 Vote
5 Réponses
24th Sep 2017, 9:04 AM
prashant vyas
Main's suestion
int
main
1 Vote
2 Réponses
17th Oct 2018, 6:01 AM
Hamza Abdelkerim Cherif
[SOLVED]Explain the output?
c
int
unsigned
why
8 Votes
5 Réponses
13th Mar 2019, 2:11 PM
🇮🇳Omkar🕉
Why i value different in this code??
c++
for
int
loop
2 Votes
13 Réponses
16th Jun 2019, 2:29 PM
Mustafa Coder
When would you use an int vs. a double in creating a variable?
variables
0 Vote
2 Réponses
29th Jan 2019, 11:24 PM
Yesenia Silva
How can i write a porgram to find all Pythagorean triples (a^2+b^2=c^2) recursively? And c has to be less than a given int N.
algorithm
c
c++
pythagore
recursively
0 Vote
14 Réponses
12th Mar 2020, 10:07 AM
Hakan Nihat
Please type in a code that declares two variables of type int and prints their sum to the screen.
001
2 Votes
2 Réponses
24th Aug 2020, 8:29 PM
Najmul Ahmed
Poser une question
Poser une question
Poser une question
Poser une question
< Précédent
1
...
30
31
32
...
50
Suivant >
Aujourd'hui en vedette
I can't see my activity
5 Votes
Linking GitHub with Sololearn profile
1 Votes
I can't see my activity in my profile
2 Votes
Am getting discourage in my Language, Help me out🙏🙏
1 Votes
Error in python
1 Votes
Can anyone help me?
1 Votes
Is the Coding Certificate Worth it??
3 Votes
High paying job?
2 Votes
Do you Think Sololearn should add GDscript?
2 Votes
Assets not loading without trailing slash
1 Votes