write a program without using main function?

Answers were Sorted based on User's Feedback



write a program without using main function?..

Answer / raavi.swami

#include<stdio.h>
#define begin main
void begin()
{
printf("Hello");
}

Is This Answer Correct ?    27 Yes 2 No

write a program without using main function?..

Answer / siva koratani

#include<stdio.h>
#define begin m##a##i##n
void begin()
{
printf("Hello");
}

Is This Answer Correct ?    7 Yes 2 No

Post New Answer

More C Interview Questions

Can we declare function inside main?

0 Answers  


is forign key will be unique key any table or not?

2 Answers  


why division operator not work in case of float constant?

2 Answers  


for questions 14,15,16,17 use the following alternatives:a.int b.char.c.string.d.float

1 Answers  


Can you please explain the difference between exit() and _exit() function?

0 Answers  






how to find the sizof of any datatype using bit manipulations

3 Answers  


struct ptr { int a; char b; int *p; }abc; what is d sizeof structure without using "sizeof" operator??

9 Answers   Verifone,


What functions are in conio h?

0 Answers  


How is null defined in c?

0 Answers  


Write a program of prime number using recursion.

0 Answers   Aspiring Minds,


Can we add pointers together?

0 Answers  


multiple of 9 without useing +,* oprator

3 Answers  


Categories