How do I declare an array of N pointers to functions
returning pointers to functions returning pointers
to characters?

Answers were Sorted based on User's Feedback



How do I declare an array of N pointers to functions returning pointers to functions return..

Answer / raj kumar

char *(*(*a[N])())();

Is This Answer Correct ?    13 Yes 2 No

How do I declare an array of N pointers to functions returning pointers to functions return..

Answer / vijay zanvar

#include <stdio.h>

/*
* How do I declare an array of N pointers to functions
* returning pointers to functions
* returning pointers to characters?
*/
int
main()
{
typedef char *f1();
typedef f1 *(*f2[4])();
return 0;
}


Best,
Vijay Zanvar,
Home Page - http://geocities.com/vijoeyz/

Is This Answer Correct ?    8 Yes 3 No

Post New Answer

More C Interview Questions

What is a program?

0 Answers  


what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1

1 Answers   IBM,


how many errors in c explain deply

0 Answers  


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

0 Answers  


Identify the correct argument for the function call fflush () in ANSI C: A)stdout B)stdin C)stderr D)All the above

5 Answers   Accenture, TCS,






What is a const pointer in c?

0 Answers  


An entire structure variable can be assigned to another structure variable if __________

3 Answers   Sasken, TCS, Tech Mahindra, Wipro,


What are pointers? What are stacks and queues?

0 Answers   Hexaware,


2. Write a function called hms_to_secs() that takes three int values&#8212;for hours, minutes, and seconds&#8212;as arguments, and returns the equivalent time in seconds.. Create a program that exercises this function by repeatedly obtaining a time value in hours, minutes, and seconds from the user (format 12:59:59), calling the function, and displaying the value of seconds it returns.

5 Answers   TCS,


What is the use of clrscr?

0 Answers  


Linked lists -- can you tell me how to check whether a linked list is circular?

0 Answers  


What is scope rule in c?

0 Answers  


Categories