What is the output of this code?

    #include <stdio.h>

    int main()

    {

        switch (printf("Do"))

        {

           case 1:

              printf("First\n");

              break;

           case 2:

              printf("Second\n");

              break;

           default:

              printf("Default\n");

              break;

        }

    }
2 Likes
  • DoSecond
3 Likes

Output : DoSecond

1 Like