KaiserKitty on Nostr: C++ heads explain this: Code: unsigned int positive; positive = 5-7; std::cout << ...
C++ heads explain this:
Code:
unsigned int positive;
positive = 5-7;
std::cout << positive << "\n";
printf("%d",positive);
Output:
4294967294 from cout
-2 from printf
Published at
2024-07-20 03:36:41Event JSON
{
"id": "f4558954134d9e26cd88953f6efcda1691d6e8b8a545e8d8f33b0a5ae7ac1b09",
"pubkey": "663b43b31419b8dc84493083c06ea4867ec722a9657c89c5eeb6762072a8111c",
"created_at": 1721446601,
"kind": 1,
"tags": [
[
"proxy",
"https://clubcyberia.co/objects/d9dbda15-7050-4582-9e6d-77a54718982b",
"activitypub"
]
],
"content": "C++ heads explain this:\n\nCode:\n unsigned int positive;\n\n positive = 5-7;\n std::cout \u003c\u003c positive \u003c\u003c \"\\n\";\n printf(\"%d\",positive);\n\n\nOutput:\n4294967294 from cout\n-2 from printf",
"sig": "beb6f28c76565c97b0e6636be8d818e5d542bafc779393f12ec56b8b3a8c2a8408dca9dff905a03629ecc0d261f7b3c53612839015184f6dbaf0a756ef05740c"
}