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
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
What is void main ()?
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.
Is fortran still used today?
What is atoi and atof in c?
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
Why is sizeof () an operator and not a function?
What are the differences between new and malloc in C?
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)
Write a program of advanced Fibonacci series.
How many types of sorting are there in c?
Differentiate between Macro and ordinary definition.
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
Explain the difference between ++u and u++?
What does the function toupper() do?