1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

負の数の算術左シフトで遊ぶ。(教科書的な内容)

Last updated at Posted at 2025-01-15

x M5NanoC6での予定は、未定

目的
教科書的に
正しく2倍になる事を確認する

オンラインコンパイラ paiza



#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a;
    
    a = -32 << 1;
    
    printf("%d\n",a);
}



-64


1
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?