Skip to main content

Posts

Showing posts with the label c program to print hello world without using printf

C Program to Print "Hello World" Without Semicolon/Printf Command

C Program To Print "Hello World". #include <stdio.h> int main() {     // printf() displays the string inside quotation     printf("Hello World");     return 0; } OUTPUT: Hello World C Program To Print "Hello World" Without Using Semicolon. #include <stdio.h> void main() {     if(printf("Hello World"))     { } } OUTPUT: Hello World C Program To Print "Hello World" Using #define. #include <stdio.h> #define PRINT printf("Hello") void main() {     if(PRINT)     { } } OUTPUT: Hello World C Program To Print "Hello World" Without Using printf. #include <stdio.h> main() {     char st[15] = "\nHello World\n";     int n =0;     while(st[n] != '\0')     {         putchar(st[n]);         n++;     } } OUTPUT: Hello World C Program To Print Semicolo...