what about "char *(*(*a[])())();"

Answers were Sorted based on User's Feedback



what about "char *(*(*a[])())();" ..

Answer / jaroosh

"char *(*(*a[])())();"
is a string, but
char *(*(*a[])())();
is NOT.
It is simply a function pointer declaration, which says :
"declare an array named 'a', of pointers to functions that
take no arguments and return a pointer to a function that
takes no arguments and returns a pointer to char"...thew,
reading function pointers is actually kinda complicated.

NOTE: char *(*(*a[])())(); is an erroneous declaration, for
it to be proper, you have to specify array size, eg:
char *(*(*a[5])())(); will work.

Is This Answer Correct ?    4 Yes 0 No

what about "char *(*(*a[])())();" ..

Answer / guest

Simply it is a string.Bze in C the contents within "" will
treate as strings.

Is This Answer Correct ?    2 Yes 2 No

what about "char *(*(*a[])())();" ..

Answer / sandeep rehlan

this is a pointer to an array

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

#include<stdio.h> void main() { int a [5]; for (i=0; i<=4; i++) printf(ā€œ%dā€ ,a[i]); }

8 Answers  


Write the following function in C. stripos ā€” Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

4 Answers   OpenFeel,


What is the use of in c?

0 Answers  


write a programming in c to find the sum of all elements in an array through function.

0 Answers  


Define function pointers?

1 Answers  






consider the following C code main() { int i=3,x; while(i>0) { x=func(i); i--; } int func(int n) { static sum=0; sum=sum+n; return(sum); } the final value of x is

4 Answers   TCS,


how to write a cprogram yo get output in the form * *** ***** ******* ********* ******* ***** *** *

3 Answers  


Simplify the program segment if X = B then C &#8592; true else C &#8592; false

0 Answers  


How can you restore a redirected standard stream?

0 Answers  


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

0 Answers   Wilco,


implement OR gate without using any bitwise operator.

1 Answers   Alcatel, Wipro,


Find MAXIMUM of three distinct integers using a single C statement

0 Answers  


Categories