fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. return 0;
  7. }
Success #stdin #stdout 0.01s 5280KB
stdin
#include <stdio.h>

int main() {
    char str[] = "ab\n\\012\\\""; // 定义字符串
    int length = sizeof(str) / sizeof(str[0]); // 计算字符串长度
    printf("The length of the string is: %d\n", length);
    return 0;
}
stdout
Standard output is empty