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

Explicit conversion from double to int

תצוגה מקדימה

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

Explicit conversion from double to int

In C#, assigning a double value to an int variable without an explicit cast causes a compile-time error.

  1. True

  2. False


Consider whether the conversion from double to int can lose the fractional part, and what the compiler requires in that case.

פרטים

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

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

תגובות

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