Question
# include
aaa() {
printf("hi");
}
bbb(){
printf("hello");
}
ccc(){
printf("bye");
}
main()
{
int (*ptr[3])();
ptr[0]=aaa;
ptr[1]=bbb;
ptr[2]=ccc;
ptr[2]();
}

Answers

Answer:
bye
Explanation:
ptr is array of pointers to functions of return type int.ptr[0] is assigned to address of the function aaa. Similarly ptr[1] and ptr[2] for bbb and ccc respectively. ptr[2]() is in effect of writing ccc(), since ptr[2] points to ccc.   Your Comment






Search
Can you Answer!!
  • Q Bleaching powder is mostly found in?
  • Q The Universal House of Justice is the supreme governing institution of the which Faith ?
  • Q What's Posting
  • Q Which is the best way to go for Game playing problem?
  • Q During the ballroom scene of Beauty & the Beast, what color is Belle’s Gown?
  • Q What is the use of employee subgroup grouping for collective agreement provision?
  • Q What is endurance limit and what is its value for steel ?
  • Q How many Districts in Karnataka?
  • Q What makes a good project manager?
  • Q What are the WPF assemblies and Namespace?
  • Q What is bug?