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
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What library is sizeof in c?
Is int a keyword in c?
FILE PROGRAMMING
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
In C language, a variable name cannot contain?
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.
What is meant by type specifiers?
Should a function contain a return statement if it does not return a value?
Why is c called a structured programming language?
How can you convert integers to binary or hexadecimal?
Suggesting that there can be 62 seconds in a minute?
Why is main function so important?
What is difference between structure and union?
Explain what is meant by high-order and low-order bytes?