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

main() {int i=5; // line 1 i=(++i)/(i++); // line 2 printf("%d",i); // line 3 } output is 2 but if we replace line 2 and line 3 by printf("%d",i=(++i)/(i++)); then output is 1. Why?

1 Answers   GATE,


Explain what are run-time errors?

0 Answers  


How is null defined in c?

0 Answers  


Can math operations be performed on a void pointer?

0 Answers  


pgm in c to reverse string by word using array(god is love becomes love is god) (no additional array can used,space is only delimiter between words )

2 Answers   Persistent,






Print all the palindrome numbers.If a number is not palindrome make it one by attaching the reverse to it. eg:123 output:123321 (or) 12321

7 Answers   HCL,


Write a C program to print 1 2 3 ... 100 without using loops?

15 Answers   Hindalco,


main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }

3 Answers  


What is n in c?

0 Answers  


What is the output for the below program? void main() { float me=1.1; double you=1.1; if(me==you) printf("love c"); else printf("know c"); }

7 Answers  


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

0 Answers  


write a program to insert an element at the specified position in the given array in c language

5 Answers   Appin, IBM,


Categories