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...

Explain function pointer with exapmles.

Answer Posted / vishnu

int temp(char t, int k)
{
t = 'd';
k = 90;
return 1;

}

int main()
{

int (* fun)(char ch, int i);// function pointer
fun = temp;
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of structure padding in c?

1023


what is the function of pragma directive in c?

1073


Is c is a middle level language?

1022


What is the purpose of & in scanf?

1026


When is the “void” keyword used in a function?

1436


Give differences between - new and malloc() , delete and free() ?

1059


What is the size of structure in c?

1112


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1073


When should the register modifier be used? Does it really help?

931


Differentiate between full, complete & perfect binary trees.

1064


What are the 4 types of organizational structures?

1044


What is #error and use of it?

1216


Describe how arrays can be passed to a user defined function

1245


What are the different properties of variable number of arguments?

1122


What are valid signatures for the Main function?

1186