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

When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

550


What is void main ()?

584


In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

2659


Is fortran still used today?

584


What is atoi and atof in c?

589






int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

711


Why is sizeof () an operator and not a function?

554


What are the differences between new and malloc in C?

583


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

5744


Write a program of advanced Fibonacci series.

680


How many types of sorting are there in c?

579


Differentiate between Macro and ordinary definition.

703


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

610


Explain the difference between ++u and u++?

613


What does the function toupper() do?

628