GeeksforGeeks » C/C++ Programming Questions

what will the output and why?

(3 posts)

Tags:

  1. c que
    guest
    Posted 5 months ago #

    #include<stdio.h>
    int main()
    {
        printf("%%dd",12);
        getchar();
        return 0;
    }
  2. kartik
    Moderator
    Posted 5 months ago #

    %dd

    An extra % is put in format tring to ignore the next % as a format specifier and print it as a notmal character.

  3. sharad Dixit
    guest
    Posted 5 months ago #


Reply

You must log in to post.

RSS feed for this topic