Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Main must be written as
a.the first function in the program
b.Second function in the program
c.Last function in the program
d.any where in the program

Answer Posted / iftekhar qurashi

last function in the program to avoid prototyping.
if we write it as a first function and other functions is declared after main(), then main function can't find it.

but it can be declared anywhere in the program when we declared every function except main() in the beginning of program

for other consultancy you can mail me

regards
iftekhar qurashi

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are pointers declared in c?

1062


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

1237


What is a string?

1121


Differentiate between full, complete & perfect binary trees.

1109


How do c compilers work?

1136


what are the 10 different models of writing an addition program in C language?

1897


What is the difference between printf and scanf in c?

1359


What are the various types of control structures in programming?

1061


Explain how can I prevent another program from modifying part of a file that I am modifying?

1094


What is union and structure in c?

1231


What is a ternary operator in c?

1125


Define recursion in c.

1286


What are the types of macro formats?

1125


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1369


What are the different properties of variable number of arguments?

1165