Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. c program

c program

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 11155045
    wrote on last edited by
    #1

    how to write the c program to display ' Hello world ' without using semicolon ?

    L CPalliniC P S 4 Replies Last reply
    0
    • U User 11155045

      how to write the c program to display ' Hello world ' without using semicolon ?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      HOW-TO-ASK-A-QUESTION with hyphens[^].

      1 Reply Last reply
      0
      • U User 11155045

        how to write the c program to display ' Hello world ' without using semicolon ?

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        Does your question make sense? Am I missing something?

        THESE PEOPLE REALLY BOTHER ME!! How can they know what you should do without knowing what you want done?!?! -- C++ FQA Lite

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • U User 11155045

          how to write the c program to display ' Hello world ' without using semicolon ?

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          # define SEMI ; Or, on the command line:

          F:\Projects>type nosem.c
          void main(void) { printf ( "Hello, world!" ) SEMI }
          F:\Projects>cl.exe /nologo /FIstdio.h /DSEMI=; nosem.c
          nosem.c

          F:\Projects>nosem
          Hello, world!
          F:\Projects>

          :badger:

          1 Reply Last reply
          0
          • U User 11155045

            how to write the c program to display ' Hello world ' without using semicolon ?

            S Offline
            S Offline
            Stefan_Lang
            wrote on last edited by
            #5

            For MS VisualStudio, this should work: int main() { #pragma message ("Hello World!") } It will generate the message "Hello World at compile time, even if the ';' key is broken on your keyboard. see http://msdn.microsoft.com/en-us/library/x7dkzch2%28v=vs.100%29.aspx[^] On a sidenote, you can write C++ programs without the use of many central characters by using digraphs and trigraphs[^]. However, ';' is ot one of the characters you can circumscribe that way, and you can't express any command that will be executed at runtime without it.

            GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups