Top

Discussion

What will be the output of the program ?

#include

int main()
{
    int i;
    char a[] = "\0";
    if(printf("%s", a))
        printf("The string is empty\n");
    else
        printf("The string is not empty\n");
    return 0;
}

 

  • A.The string is empty
  • B.The string is not empty
  • C.No output

Answer: B

No answer description available for this question.

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

Post your comment