رد: كم سوال يحتاجو لجواب
Q1: What is wrong with this code?
1. if ( tall == 180); cout << “ You are taller than me!”;
الخطأ موضح باللون الأحمر .
--------------------------------
Q2: What is the output of the following code?
int n=1; if (n=0) cout << "n = 0"; else cout << "n = " << n;
1. n = 0
2. n = n
3. n = 1
4. error
5. n =
رغم أني أعتبرها خطأ (error),, ولكن المترجم صرفها .
الأسئلة البقية في وقت آخر إن شاء الله .
|