What is the difference b/w main() in C language and main()
in C++.

Answer Posted / gganesh

In c, main function will execute starting itself.
In c++, main function will execute finally

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why functions are used in c?

580


What are the ways to a null pointer can use in c programming language?

586


Define and explain about ! Operator?

611


What is calloc in c?

654


What is meant by int main ()?

714






.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

702


Which is best book for data structures in c?

591


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

722


What is the difference between the local variable and global variable in c?

525


Why does everyone say not to use scanf? What should I use instead?

678


i got 75% in all semester am i eligible for your company

1731


What are types of functions?

557


What's the total generic pointer type?

608


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

670


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1901