Can we write a program without main() function?

Answer Posted / rahul

no we can write a program with out main function, this
function is the main function which usually help OS to kill
the process that has executed, like in JAVA main() is used
as a thread whose wqork is to kill the executed process and
mark those as GC( Garbage collection)

Is This Answer Correct ?    10 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

755


4. main() { int c=- -2; printf("c=%d",c); }

1371


What is #pragma statements?

592


Explain the process of converting a Tree into a Binary Tree.

2107


What does printf does?

749






Why c is a procedural language?

585


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

1919


What are shell structures used for?

603


Are the variables argc and argv are always local to main?

575


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1864


What is pre-emptive data structure and explain it with example?

3213


Is it better to bitshift a value than to multiply by 2?

661


Which of these functions is safer to use : fgets(), gets()? Why?

636


What is bss in c?

606


c program for searching a student details among 10 student details

1657