print a semicolon without using a semicolon in the code?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kolla
    New Member
    • May 2007
    • 1

    print a semicolon without using a semicolon in the code?

    how to write a c programme to print a semicolon without writing using a semicolon in the main program
  • Ganon11
    Recognized Expert Specialist
    • Oct 2006
    • 3651

    #2
    Moving this thread to the C++/C forum.

    Look up some ASCII values and find the one for the semicolon character.

    Comment

    • svlsr2000
      Recognized Expert New Member
      • Feb 2007
      • 181

      #3
      use a conditional statement like if or while
      int i = 59
      if(printf(";")) or if(printf("%c", i))

      Comment

      Working...