why we shiuld use main keyword in C

Answers were Sorted based on User's Feedback



why we shiuld use main keyword in C..

Answer / siddiqui mohd. faisal

main is a keyword which tells the compiler that actual
program starts from here.

Is This Answer Correct ?    16 Yes 8 No

why we shiuld use main keyword in C..

Answer / nirmal kumar tailor

main() is the important part of the programe.

main() defines scope of the programe and all working in
this scop means execute the programe in between this block

all programe execution with the main() function.

Is This Answer Correct ?    8 Yes 1 No

why we shiuld use main keyword in C..

Answer / shireesha

It invokes the other functions defined in the program.
It provides the starting address for the funtion.

Is This Answer Correct ?    8 Yes 3 No

why we shiuld use main keyword in C..

Answer / gg

Every C program should have at least one function.main() is
special function, from here the actual execution of the
program starts. main() is one which calls all other
functions and helps to do their job.The functions may from
library or user defined.

Is This Answer Correct ?    4 Yes 2 No

why we shiuld use main keyword in C..

Answer / raj

main() is the enty point of all the application ,and is the
special function because it is invoked by the OS
routines,through this function we can call any function.So
every application must contain main() function.

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More C Interview Questions

print out put like this form 1 2 3 4 5 6 3 5 7 9 11 8 12 16 20

8 Answers   TCS,


Explain main function in c?

0 Answers  


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

0 Answers   Celstream,


how do you programme Carrier Sense Multiple Access

0 Answers  


what is the difference between c and java?

1 Answers  






What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

0 Answers   Aspire, Infogain,


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

0 Answers  


difference between c and c++

3 Answers  


What is the difference between array and pointer?

0 Answers  


 write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

0 Answers  


can we declare a function inside the structure? ex: struct book { int pages; float price; int library(int,float); }b; is the above declaration correct? as it has function declaration?

2 Answers  


what is the main use of c where it can use the c

2 Answers   Infosys,


Categories