what is the need for main function in c?

Answers were Sorted based on User's Feedback



what is the need for main function in c?..

Answer / inamdar

every program execution is starts from the main()
function.compiler starts execution from main()
function.by default it returns integer value.

Is This Answer Correct ?    9 Yes 2 No

what is the need for main function in c?..

Answer / kartik

The main() function represenrs starting of the program.When
ever we write main in program the system analyse starts from
tthere

Is This Answer Correct ?    4 Yes 0 No

what is the need for main function in c?..

Answer / musharaf ali

every program start from the main function whatever main is defined anywhere in program.

Is This Answer Correct ?    1 Yes 0 No

what is the need for main function in c?..

Answer / sanjay bhosale

Every c program execution starts from startup procedure which internally calls exit(main({parameters here})).
so to start execution we need main() function in our program.

Is This Answer Correct ?    1 Yes 0 No

what is the need for main function in c?..

Answer / shafi shaik

Every Programing Language the program Compilation Starts
with main(). Becase The main() os a Driver function.


Exam any application(valclator , ms-word etc) to clicking
the mouse the application internally execute the
application through the dos prompt

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

how to construct a simulator keeping the logical boolean gates in c

0 Answers  


What are the advantage of c language?

0 Answers  


What do you mean by recursion in c?

0 Answers  


write a programme to enter some number and find which number is maximum and which number is minimum from enterd numbers.

3 Answers  


Please provide question papers of NATIONAL INFORMATICS CENTRE for Scientific officer

0 Answers  






Write a program to generate random numbers in c?

0 Answers  


How many types of arrays are there in c?

0 Answers  


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

0 Answers  


How to reverse a string using a recursive function, with swapping?

5 Answers  


What is the difference between Printf(..) and sprint(...) ?

0 Answers   InterGraph,


what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1

1 Answers   IBM,


Explain how do you convert strings to numbers in c?

0 Answers  


Categories