How do I declare an array of N pointers to functions
returning pointers to functions returning pointers
to characters?
Answer Posted / 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 View All Answers
What is 1f in c?
What are the advantage of c language?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
Should I learn data structures in c or python?
What is the difference between class and object in c?
What type of function is main ()?
How are pointers declared in c?
How can I generate floating-point random numbers?
List some basic data types in c?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
what is event driven software and what is procedural driven software?