Print “Hello World” in C without using any header file

Write a program to print “Hello World” in C without using any header file.

Example:

Output: Hello World

Approach

C

//Declare the printf() function into
//your program
int printf(const char *format, ...);

int main()
{
    printf("Hello World");
    return 0;
}


No comments:

Post a Comment