דילוג לתוכן
שאלה

Post and pre increment

תצוגה מקדימה

מפתח התשובות מוצג למורים מחוברים.

Post and pre increment

After int a = 5; is executed, what value is stored in b by the statement int b = a++ + ++a;?

  1. 10

  2. 13

  3. 12

  4. 11


Work through the operands from left to right. The postfix operator uses the current value before incrementing, while the prefix operator increments first.

פרטים

אין תיאור עדיין.

מקצועות
c#
קהל יעד
תיכון · כיתות י׳–י״א
רמת קושי
6 מתוך 10
שפה
אנגלית
מי יכול לראות
כולם
הושלם על ידי AI
מה שמסומן בניצוץ נוסף על ידי AI.
נוצר באמצעות AI
Claude Haiku 5.5
נוצר
עודכן
לפני 5 ימים

תגובות

  1. אין תגובות עדיין.
© כל הזכויות שמורות