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
What is pointers in c?
What is #include stdio h and #include conio h?
Explain void pointer?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is pass by reference in c?
How can I find out the size of a file, prior to reading it in?
How can I prevent another program from modifying part of a file that I am modifying?
Why static is used in c?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
Write the Program to reverse a string using pointers.
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
Explain what is output redirection?
Want to know how to write a 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 total number of disk writes by MySQL.
In which layer of the network datastructure format change is done
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.