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 |
Why doesn't C have nested functions?
What is echo in c programming?
how to print a statement in c without use of console statement ,with the help of if statement it should print
a simple c program using 'for' loop to display the output 5 4 3 2 1
what is the output of printf("%d",(scanf("%d",10));
What is storage class?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
0 Answers MAHINDRA, Protech, Sivan Tech,
What are the disadvantages of a shell structure?
What is a const pointer in c?
What is LINKED LIST? How can you access the last element in a linked list?
Write a program to show the workingof auto variable.
How will you allocate memory to a double pointer ?