Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite0
Solve them and explain also
1) j = i++; Provide i = 11 And j =10 2) in c language, TC++ compiler it provide i= i++; Provide value of i 11
7 Réponses
+ 5
Basically I++ here ++ is an increment operator which increase by 1 value
One request pls don't use TC compiler as it is 30 year old compiler. Please try to use vscode, dev++ or code blocks etc for compilation.
In your ex:
J = i++ ;
First I value is 11 then after increment it will be 12 . So now j value is 12
Now here it is given j = 10;
In above ex it should be j-- .here -- means decrease by one value
Then your answer be 10 .
Hope it is clear to you now
+ 4
abhishek bairwa
int k=10,j;
j= k++;
System.out.println(j);
System.out.println(k);
Phle line me k ka value hai 10 aur j ko sirf declare kiya gaya hai iska matlab hai j ki value 0 hai
Dusri line me k++ iska matlab hai phle value ko likna hai then uski value ko bada na hai 1 number se aur answer ko j variable me store karna hai
Akhir me print karna hai sabi values ko print statement use karke
Ex System. out.println() ;
Answer ya output hai
10 //phle k ki value ko use karna
11// then 1 no se value ko bada na
Asha hai k samajh me agaya hoga
+ 3
Simply run in java compiler of this app. You will get the output.
+ 2
Ok 🅰🅹 🅐🅝🅐🅝🅣 Sir I will explain him in hindi
+ 1
Aysha
Explain in Hindi. He doesn't know English well.
0
int i =10;
System.out.printf("%d,%d,%d",i++,i,++i);
Output in Java ?? Explanation in Hindi or English
- 1
int k=10,j;
j= k++;
System.out.println(j);
System.out.println(k);
Output in Java ??