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 |
Difference between fopen() and open()?
What does it mean when the linker says that _end is undefined?
main() { int a,b; printf("%d,%d",scanf("%d%d",&a,&b)); } => do u mean above program's output... =>output will be:2,whatever you enter value for b. =>because scanf is a library fn which will return how many arguements it processes, and second value you are right mr.Satya but i found my self unable to understand that for the first time scanf returns the no of successful matches but how for the second time it returns the value of 'b'.while a function should return the same 'r' value every time.
Explain how can you be sure that a program follows the ansi c standard?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
How do you access command-line arguments?
When is a null pointer used?
6)What would be the output? main() { int u=1,v=3; pf("%d%d",u,v); funct1(&u,&v); pf("%d%d\n",u,v); } void funct1(int *pu, int *pv) { *pu=0; *pv=0; return; } a)1 3 1 3 b)1 3 1 1 c)1 3 0 0 d)1 1 1 1 e) 3 1 3 1
What is the difference between int main and void main?
What is c++ used for today?
Write a program that takes three variables(a,b,c) in as separate parameters and rotates the values stored so that value a goes to b,b,to c and c to a
What is the proper way of these job Tell me about there full work