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

write a function for strtok()??

2 Answers   Verifone,


write a program to print sum of each row of a 2D array.

4 Answers  


How can you read a directory in a C program?

0 Answers  


print pattern 1 1 33 33 555 555 77777777 555 555 33 33 1 1

1 Answers   Winit,


Write a c program to read a positive number and display it in words.? ex: 123=one two three help me....

2 Answers  






What is the memory allocated by the following definition ? int (*x)[10];

4 Answers   ADITI, Wipro,


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

0 Answers  


What is exit() function?

0 Answers  


give an example of type casting by a simple c program

2 Answers   TCS,


write a program in c language to print your bio-data on the screen by using functions.

0 Answers  


write a function that accepts an array A with n elements and array B with n-1 elements. Find the missing one in array B,with an optimized manner?

2 Answers   Zensar,


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

0 Answers  


Categories