What is main function in c?



What is main function in c?..

Answer / Abhishek Srivastava

The main() function is the entry point for any C program. It's where the execution of a program begins. The main function must return an integer value to indicate whether the program has run successfully or encountered an error.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

How does memset() work in C?

2 Answers  


What is string in c language?

1 Answers  


how can we print  hellow world programme without using semicolon

3 Answers  


pgm to reverse string using arrays i.e god is love becomes love is god) (assumption:only space is used for seperation of words) no addtional memory used.i.e no temporary arrays can used.

4 Answers   Persistent, Valyoo,


can we have joblib in a proc ?

1 Answers  


what is out put of the following code? #include class Base { Base() { cout<<"constructor base"; } ~Base() { cout<<"destructor base"; } } class Derived:public Base { Derived() { cout<<"constructor derived"; } ~Derived() { cout<<"destructor derived"; } } void main() { Base *var=new Derived(); delete var; }

3 Answers   Honeywell,


What is a structure member in c?

1 Answers  


Explain how can you determine the size of an allocated portion of memory?

1 Answers  


i=20,k=0; for(j=1;j<i;j=1+4*(i/j)) { k+=j<10?4:3; } printf("%d", k);

8 Answers   HCL,


c language interview questions & answer

1 Answers  


how to get starting address of a running C program

3 Answers  


Explain how do you view the path?

1 Answers  


Categories