c - How to have an array of functions that returns pointers of ints -


जब मैं निम्नलिखित पंक्ति को संकलित करने का प्रयास करता हूं

  int * x [] (), (* y) ();   

मुझे त्रुटि "एक्स प्रकार के कार्यों के एक सरणी के रूप में घोषित एक्स ()"

2 फ़ंक्शन पॉइंटर्स की एक सरणी के लिए इसे आज़माएं।

  #include & lt; stdio.h & gt; Int * पहले (शून्य) {वापसी नल; } Int * दूसरा (शून्य) {वापसी नल; } Int मुख्य (शून्य) {int * (* fx [2]) (शून्य); एफएक्स [0] = पहले; एफएक्स [1] = दूसरा; / * ... * / अगर (एफएक्स [0] () == एफएक्स [1] ()) {printf ("दोनों कॉलिंग कॉलिंग समान मूल्य देता है। \ N"); } वापसी 0; }    

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -