write a “Hello World” program in “c” without using a semicolon?
Answers were Sorted based on User's Feedback
Answer / rajeev
int main()
{
if(printf("hello world"))
}
For if statement compiler does not expect semi colon.
| Is This Answer Correct ? | 55 Yes | 18 No |
Answer / 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 |
Answer / mahesh
#include<stdio.h>
void main()
{
if(printf("Hello World"))
{
}
}
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / latiff
int main()
{
if(printf("hello world"))
}
In if statement compiler does not expect semicolon.
| Is This Answer Correct ? | 6 Yes | 4 No |
Answer / prashant
sir, i can not give the answer of this question.
| Is This Answer Correct ? | 4 Yes | 17 No |
Can math operations be performed on a void pointer?
what do you mean by inline function in C?
Write a c program to enter a string of paragraph and replacing a particular word which is repeated in the paragraph by another word?
2 Answers ME, Synfusion, Wipro,
What is a structure in c language. how to initialise a structure in c?
code for inverse a matrix
fn f(x) { if(x<=0) return; else f(x-1)+x; }
What is a macro in c preprocessor?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What are the 5 data types?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
Will Macros support multiple arguments ?
Explain the importance and use of each component of this string: Foo.Bar, Version=2.0.205.0, Culture=neutral, PublicKeyToken=593777ae2d274679d