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

How to find a missed value, if you want to store 100 values in a 99 sized array?

0 Answers   Honeywell, Zomato,


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

0 Answers  


what is an ERP?

2 Answers   Infotech,


What is a void * in c?

0 Answers  


Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.

1 Answers   TCS,






int array[]={1,2,3,4,5,6,7,8}; #define SIZE (sizeof(array)/sizeof(int)) main() { if(-1<=SIZE) printf("1"); else printf("2"); }

2 Answers   Vector,


what is difference between null and nul in c language

2 Answers  


What is the scope of static variable in c?

0 Answers  


How does #define work?

0 Answers  


Write a code to generate divisors of an integer?

0 Answers   Ericsson,


What is a scope resolution operator in c?

0 Answers  


What do you mean by keywords in c?

0 Answers  


Categories