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

Answer Posted / ppp

In c:
int main(){ void main(){
..... .......
..... OR ......
return 0; }
}

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of structure pointer in c?

608


Can we declare variable anywhere in c?

533


What is a structure in c language. how to initialise a structure in c?

603


Did c have any year 2000 problems?

647


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

2449






What is a string?

661


What's the difference between constant char *p and char * constant p?

650


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1109


What is time complexity c?

562


I heard that you have to include stdio.h before calling printf. Why?

582


What is return type in c?

635


about c language

1597


what will be maximum number of comparisons when number of elements are given?

1406


How can I find out how much free space is available on disk?

622


What are linker error?

612