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

Can we compile a program without main() function?

1127


How many data structures are there in c?

1127


What is default value of global variable in c?

994


Write a program to use switch statement.

1134


What is huge pointer in c?

1089


Explain how can you avoid including a header more than once?

1093


How many main () function we can have in a project?

1115


What is console in c language?

1101


What is actual argument?

1066


What is the size of structure in c?

1157


In a header file whether functions are declared or defined?

1128


What is volatile variable in c?

1095


What is queue in c?

1107


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2760


What are the 4 types of programming language?

1133