with out semicolon

Home Forums C Programming with out semicolon

This topic contains 2 replies, has 2 voices, and was last updated by  Humayan 9 years, 10 months ago.

  • Author
    Posts
  • #2076

    Can  u  write  a  ‘C’  program  with out using semicolon ?
    U  should not use any macros…

  • #3356

    Humayan
    Member

    I guess that depends on your definition of  “a program”. You could just do this:
     

     
    This is a do nothing program. The lack of semicolons rules out most expressions and declarations , ect. You could add an empty loop:
     

     
    Heres a copy of the C grammar that you can check out to maybe find more:
     
    http://www.lysator.liu.se/c/ANSI-C-grammar-y.html

  • #3357

    Humayan
    Member

    Hes another:
     

     
    I think you could build an entire program this way. Have to think about this!

You must be logged in to reply to this topic.

0 Shares
Share
+1
Tweet
Share
Stumble