שפת C/משתנים/תרגילים: הבדלים בין גרסאות בדף

אין תקציר עריכה
אין תקציר עריכה
אין תקציר עריכה
{{מוסתר|הפתרון|2=
 
<source lang = "cpp">
<div style="text-align:left; direction:ltr;"><pre>
int temp;
 
a = b;
b = temp;
</pre></divsource>
 
}}
 
התבונן בתכנית הבאה:
<source lang = "cpp">
<div style="text-align:left; direction:ltr;">
<pre>
int x
 
}
}
</presource>
</div>
* כמה משתנים לוקליים וכמה משתנים גלובליים יש בתכנית?
* לכמה בלוקים שייך המשתנה c?
7,521

עריכות