What is the output of this C code? #include #include int main() {..
What is the output of this C code?
- #include
- #include
- int main()
- {
- char *str = “x”;
- char c = ‘x’;
- char ary[1];
- ary[0] = c;
- printf(“%d %d”, strlen(str), strlen(ary));
- return 0;
- }
a) 1 1
b) 2 1
c) 2 2
d) 1 (undefined value)
