with out using main how to execute the program?

Answers were Sorted based on User's Feedback



with out using main how to execute the program?..

Answer / pradeep

It is not a c program if it is not using main function.
Compiler starts execution from main function always.

Is This Answer Correct ?    18 Yes 4 No

with out using main how to execute the program?..

Answer / sagar

In any C program, it must contain main function..........
So, it is not possible to run any program without main
function .......

Is This Answer Correct ?    5 Yes 5 No

Post New Answer

More C Interview Questions

What is anagram in c?

0 Answers  


who is the founder of c

19 Answers   College School Exams Tests, HP,


. A database table called PERSON contains the fields NAME, BASIC and HRA. Write a computer program to print a report which employee name and total salary for those employees whose total salary is more than 10,000. Total Salary = BASIC + HRA. At the end, the program should also print the total number of employees whose total salary is more than 10,000.

1 Answers  


Give the Output : * * * * * * * * * *

2 Answers  


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

0 Answers   TCS,






Explain how can I avoid the abort, retry, fail messages?

0 Answers  


is compiler do read the data line by line or not. ??

6 Answers   LG Soft, Satyam, Tech Mahindra,


what is the function of void main()?

8 Answers  


main() { float f1=10.5; double db1=10.5 if(f1==db1) printf("a"); else printf("b") }

2 Answers   CSC,


Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986

2 Answers  


What is a dynamic array in c?

0 Answers  


biggest of two no's with out using if condition statement

8 Answers  


Categories