wap to print "hello world" without using the main function.

Answer Posted / manne ranjith

Using Macros we can solve this.

#include<stdio.h>
#include<conio.h>

#define manne main

void manne()
{
clrscr();
printf("HELLO WORLD\n");
getch();
}

Is This Answer Correct ?    27 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how do you print an address?

648


What's a good way to check for "close enough" floating-point equality?

617


What is hash table in c?

560


Write a program to swap two numbers without using third variable in c?

605


can anyone suggest some site name..where i can get some good data structure puzzles???

1637






Why flag is used in c?

645


Differentiate between Macro and ordinary definition.

716


What is the difference between array and pointer?

558


Why is main function so important?

605


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

620


When should you use a type cast?

583


Why is c called a mid-level programming language?

713


How can I insert or delete a line (or record) in the middle of a file?

564


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

1976


Can stdout be forced to print somewhere other than the screen?

609