fork download
  1. #include <iostream>
  2. #include <string.h>
  3. #include <stdio.h>
  4. using namespace std;
  5.  
  6. int main() {
  7. // your code goes here
  8. char a[7]="a0\0a0\0";int i,j;
  9.  
  10. i=sizeof(a); j=strlen(a);
  11. //j = a.strlen();
  12.  
  13. printf("%d %d\n",i,j);
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
7  2