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)
{ }
}
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 Semicolon Without Using A Semicolon .
#include <stdio.h>
int main()
{
if(printf("%c",59))
{
}
}
OUTPUT:
;
ALSO READ:
-- Program To Print First Ten(10) Natural Numbers.
-- Program To Print Fibonacci Series Upto 100.
-- Program To Check Whether A Number Is Prime Or Not.
-- Program To Compute The Reverse Of A Number.
-- Program To Print A Semicolon Without Using A Semicolon.
-- Program To Display Function Without Using The Main Function.
-- Program To Print Any Print Statement Without Using Semicolon.
-- Program To Display Its Own Source Code As Its Output.
-- Program To Swap Two Strings Using strcpy() Function.
-- Program to accept a string and print the reverse of the given string.
-- Program To Get IP Address.
-- Program To Accept An Integer & Reverse It.
-- Program To Convert Given Number Of Days To A Measure Of Time Given In Years, Weeks & Days.
-- Program To Illustrate The Concept Of Unions.
-- Program To Find The Size Of A Union.
... Back To C++ Programs Index
... Back To C++ FAQ's Index
... Back To C Programs Index
... Back To C FAQ's Index
Comments
Post a Comment
Please share your opinions and suggestions or your experience in the comments section. This way we can all help each other...
Experienced guys can share their resumes at admin@interview-made-easy.com