• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
+ 2

About increment !!

#include <stdio.h> int main() { int a=1; printf("%d %d %d",a,a++,++a); return 0; } I thought that this one should print 3 2 2 ...... but this code print 3 2 3 !!!!!! WHY !!

cquestionpost_incrementpre_increment
21st Nov 2019, 3:18 AM
Partha Sarathi
Partha Sarathi - avatar
1 Antwort
+ 3
https://www.sololearn.com/Discuss/2074582/?ref=app
21st Nov 2019, 3:27 AM
voja
voja - avatar

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
How to properly reverse a string in python
5 Votes
Using Python on VScode
2 Votes
Python Developer
0 Votes
hi my coding instor told me to make a calculator that find the average of two numbers can you pls tell me my erro
0 Votes
Hi guys I need some one to teach the String name how I can do it true because when I finish coding they give me NO OUTPUT
1 Votes
fully dynamic arrays
1 Votes
Wayss
0 Votes
Can I take the certificates after finished the lessons?
1 Votes
Hearts
0 Votes
Project subjection
0 Votes