search

Home  >  Q&A  >  body text

c++ - sizeof("001\001")【Wrong writing】


// VS2015 + win10 + Debug x86

#include<iostream>
using namespace std;

int main()
{
    cout << sizeof("001rrreee1");  //5

    return 0;
}

Seek to explain.

阿神阿神2820 days ago607

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-05-16 13:25:27

    I understand, the above is wrong.

    reply
    0
  • Cancelreply