Top

Discussion

What will be the output of the following C code?

#include 
    int main()
    {
        char *str = "hello, world\n";
        printf("%d", strlen(str));
 
    }

 

  • A.Compilation error
  • B.Undefined behaviour
  • C.13
  • D.11

Answer: C

No answer description available for this question.
 

No comment is present. Be the first to comment.
Loading…

Post your comment