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

Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

1749


What library is sizeof in c?

576


Is int a keyword in c?

559


FILE PROGRAMMING

1781


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2253






In C language, a variable name cannot contain?

747


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

1731


What is meant by type specifiers?

663


Should a function contain a return statement if it does not return a value?

601


Why is c called a structured programming language?

686


How can you convert integers to binary or hexadecimal?

622


Suggesting that there can be 62 seconds in a minute?

603


Why is main function so important?

619


What is difference between structure and union?

606


Explain what is meant by high-order and low-order bytes?

637