How can you print HELLO WORLD without using "semicolon"?
Answers were Sorted based on User's Feedback
Answer / gganesh
#include<stdio.h>
void main()
{
if(printf("Hello world"))
{
}
}
| Is This Answer Correct ? | 30 Yes | 8 No |
Answer / vinita khandavi
#include(stdio.h)
// Develped by vinita
void main()
{
if(printf("Hello world"))
{
}
}
| Is This Answer Correct ? | 32 Yes | 17 No |
Answer / anuj shukla
#include<stdio.h>
void main()
{
if(printf("helloworld"))
{
}
}
| Is This Answer Correct ? | 17 Yes | 6 No |
Answer / prakash
#include<stdio.h>
#include<conio.h>
void main()
{
if(printf(hello world))
{
getch();
}
}
| Is This Answer Correct ? | 12 Yes | 9 No |
Answer / m.manivel
#include<stdio.h>
int main()
{
switch(printf("hello world!))
return 0;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / spicy
#include<stdio.h>
void main()
{
if(printf("HELLO WORLD"))
getch();
}
| Is This Answer Correct ? | 3 Yes | 6 No |
Answer / sivasankari
#include <stdio.h>
#define WEE puts( "Hello World!" );
int main( int argc, char * argv[] ) {
WEE
}
| Is This Answer Correct ? | 0 Yes | 3 No |
Explain how can I write functions that take a variable number of arguments?
How do I declare a pointer to an array?
What does %2f mean in c?
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.
What are data types in c language?
Why array starts with index 0
What are the types of pointers in c?
What is the size of structure pointer in c?
While(1) { } when this loop get terminate is it a infinite loop?
Explain following declaration int *P(void); and int (*p)(char *a);
Can we assign string to char pointer?
What is the use of bit field?