write a “Hello World” program in “c” without using a semicolon?

Answer Posted / prakash.k.r

#include<stdio.h>
void main()
{
if(printf("Hello World"))
{
}
}

printf() fn is available in the stdio header file, and so it
must be loaded. Using int main without return stmt is not
good. If any other solution, plz add your answer.

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are pointers declared in c?

811


What is a global variable in c?

784


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1713


What is the advantage of an array over individual variables?

993


What is anagram in c?

707


Explain what are preprocessor directives?

831


What are types of functions?

773


Add Two Numbers Without Using the Addition Operator

569


Difference between macros and inline functions? Can a function be forced as inline?

958


i got 75% in all semester am i eligible for your company

1955


What is a function simple definition?

856


What is page thrashing?

852


What is const keyword in c?

954


With the help of using classes, write a program to add two numbers.

846


What is the basic structure of c?

791