Quizzes
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
bitwise-operators
:
Content language: Русский
English
Что будет выведено на экран в результате выполнения программы? #include <iostream> int main(void) { int a=5; a<<=3; std::cout << a; return 0; }
bitwise-operators
Что выведет следующий код? #include <iostream> int main() { int i = 3; int c = 0; while(i) { ++c; i ^= i & -i; } std::cout << c; return 0; }
bitwise-operators
Что выведет на экран следующая программа? #include <iostream> #include <string> using namespace std; int main() { string str("abcdefghijk"); int index = str.length(); index = ~index; while(++index) { cout << str.at(~index); } return 0; }
bitwise-operators
Что выведет следующий кусок кода? int value = 5; cout << value += 3;
bitwise-operators
Что будет выведено в консоль? int a = 5; int b = 0; int &r = a; r = b++; cout << a; cout << r; cout << b;
bitwise-operators
bitwise-operators
что будет выведено на экран: int main(int argc, char *argv[]) { int b = 0; int d = 3 / b; cout << d; return 0; }
bitwise-operators
Каков будет вывод следующего кода? #include <iostream> using namespace std; class Zero{}; class One: public Zero{}; class Two: public Zero{}; int main() { One* pO = new One; Two* pT = new Two; cout << (typeid(pO) == typeid(pT)) << endl; return 0; }
bitwise-operators
Что выведется на экран после выполнения данной программы? #include <iostream> #include <stdint.h> using namespace std; int main() { int a = 0; for (int8_t i = 1; i > 0; i <<= 1) a++; cout << a; return 0; }
bitwise-operators
Что выведет на консоль следующий код? #include <iostream> template<int T> int TempFunc() { return 1 + TempFunc<T & (T-1)>(); } template<> int TempFunc<0>() { return 0; } int main() { std::cout << TempFunc<13>() << TempFunc<5>(); }
bitwise-operators
← Prev
1
2
Next →
Sign Up Now
or
Subscribe for future quizzes