Home / MCQ Bank / Computer
Computer Fundamentals

What will be the output of the following C code? #include <stdio.h> #include <string.h> int main() { char *str = "x"; char c = 'x'; char ary[1]; ary[0] = c; printf("%d %d", strlen(str), strlen(ary)); return 0; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • 1 (undefined value)

Related Computer Questions

How do you filter rows in a dplyr data frame based on a specific condition using filter()? Which of the following CSS3 property can be used to allow line breaks within words? Using a custom animation effect, how do you make text appear on a slide by letter In C#, which keyword is used to exit from a method without returning any value? The vast network of computers that connects millions of people all over the world is called.