0

why this code showing error

#include <stdio.h> int main() { char str1[6] = "hello"; char str2[ ] = "world"; /* size 6 */ printf("str1 is: %s, str2 is: %s", str1, str2); prinrf("size of str1 is %ld", sizeof(str1)); prinrf("size of str1 is %ld", sizeof(str2)); return 0; }

11th May 2021, 6:45 PM
Balaji
Balaji - avatar
1 Antwort
+ 1
printf instead of prinrf?
11th May 2021, 6:59 PM
Xixi