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 |
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
What is a lookup table in c?
Write an implementation of “float stringToFloat(char *str).” The code should be simple, and not require more than the basic operators (if, for, math operators, etc.). • Assumptions • Don’t worry about overflow or underflow • Stop at the 1st invalid character and return the number you have converted till then, if the 1st character is invalid return 0 • Don’t worry about exponential (e.g. 1e10), instead you should treat ‘e’ as an invalid character • Write it like real code, e.g. do error checking • Go though the string only once • Examples • “1.23” should return 1.23 • “1a” should return 1 • “a”should return 0
Which header file should you include if you are to develop a function which can accept variable number of arguments?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
Is an array parameter is always "by reference" ?
What is typedef struct in c?
what is event driven software and what is procedural driven software?
Explain what is dynamic data structure?
how the size of an integer is decided? - is it based on processor or compiler or OS?
19 Answers HCL, JPR, Microsoft, nvidia,
helllo sir , what is the main use of the pointer ,array ,and the structure with the example of a programe
Explain pointer. What are function pointers in C?