Hi Aayush, When you declare a string as char str[]=“abc”, the sizeof(str) will give 4 because there are 3 characters in the array + '\0'.
確定! 回上一頁