Jump to content

khrystal1557

Members
  • Posts

    2
  • Joined

  • Last visited

khrystal1557's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. nu am incercat nimic tema pentru acasa ))) sau uite #include <stdio.h> int main() { unsigned char symbol; scanf("%c", &symbol); printf("symbol: \"%c\"\n", symbol); printf("code: %u\n", (int)symbol); printf("address: %p\n", &symbol); return 0; } sau in c++, e corect #include int main() { char symbol; std::cin >> symbol; std::cout << "symbol: " << symbol << std::endl; std::cout << "code " << static_cast(symbol) << std::endl; std::cout << "address: " << static_cast(&symbol) << std::endl; } static cast < int > ( symbol ) sstatic cast < void* > ( &symbol )
  2. de la tastatura se introduce un caracter. De elaborat un program care sa afiseze caracterul introdus codul lui ASCII si adresa (in hexazecimal) la care a fost depus in memorie.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.