why we shiuld use main keyword in C
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
print out put like this form 1 2 3 4 5 6 3 5 7 9 11 8 12 16 20
Explain main function in c?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
how do you programme Carrier Sense Multiple Access
what is the difference between c and java?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
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
difference between c and c++
What is the difference between array and pointer?
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.
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?
what is the main use of c where it can use the c