Forwarded from IS AM 2022 (M .Al-mamari)
What is the output of the following program?
#include<iostream>
using namespace std; int main() { int dec=6, bin[10], i=0; while(dec!=0) { bin[i] = dec%2; i++; dec = dec/2; } for(i=(i-1); i>=0; i--) cout<<bin[i]; return 0; }
#include<iostream>
using namespace std; int main() { int dec=6, bin[10], i=0; while(dec!=0) { bin[i] = dec%2; i++; dec = dec/2; } for(i=(i-1); i>=0; i--) cout<<bin[i]; return 0; }
Anonymous Quiz
41%
110
20%
111
26%
112
13%
101
Forwarded from IS AM 2022 (M .Al-mamari)
What is the output of the following program?
#include<iostream>
using namespace std; int main(){ int n = 128,a=0; int res = n/a; cout<<res; return 0; }
#include<iostream>
using namespace std; int main(){ int n = 128,a=0; int res = n/a; cout<<res; return 0; }
Anonymous Quiz
26%
128
6%
1
19%
0
50%
Error
Forwarded from المخزن | IT 22 (◔̯◔)
Forwarded from المخزن | IT 22 (◔̯◔)
Forwarded from اللجنة العلمية CS 22 (♤ Rm.)
نماذج الاختبار النهائي - سنة أولى-الترم الثاني.
Forwarded from اللجنة العلمية CS 22 (♤ Rm.)
Forwarded from جامعة صنعاء | USF (المصطفى)