C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
C Program to print "hello" without semicolonWe can print "hello" or "hello world" or anything else in C without using semicolon. There are various ways to do so:
Program 1: Using if statementLet's see a simple c example to print "hello world" using if statement and without using semicolon. #include Output: hello world Program 2: Using switch statementLet's see a simple c example to print "hello world" using switch statement and without using semicolon. #include Output: hello world Program 3: Using while loopLet's see a simple c example to print "hello world" using while loop and without using semicolon. #include Output: hello world
Next TopicAssembly program in C
|