How to print % symbol in C language. ?

Follow
  • Follow publicly
  • Follow privately
  • Unfollow
I am typing this: printf("part(%) ") but this does not work
Best Answer
Yep both are right..
  • Rate
  • Comment

Other Answers (2)

Rated Highest
  • Rated Highest
  • Oldest
  • Newest
  • Zeta1 answered 6 years ago
    printf("this is a %% (twice)\n");

    a % quote the next %.
    • 1
    • Comment
  • llaffer answered 6 years ago
    printf("part(\%)");
    • 1
    • Comment
  • Sign In 

    to add your answer

Who is following this question?

    %
    BEST ANSWERS
    Member Since:
    Points: Points: Level
    Total Answers:
    Points this week:
    Follow
     
    Unfollow
     
    Block
     
    Unblock