IndiaBIX.com
Arithmetic Aptitude Data Interpretation
Logical Reasoning Verbal Reasoning Non Verbal Reasoning
General Knowledge
Sudoku Number puzzles Missing letters puzzles Logical puzzles Playing cards puzzles Clock puzzles
C Programming C# Programming Java Programming
Networking Database Questions Computer Science Basic Electronics Digital Electronics Electronic Devices Circuit Simulation Electrical Enigneering Engineering Mechanics Technical Drawing
Placement Papers Group Disucssion HR Interview Technical Interview Body Language
Aptitude Test Verbal Ability Test Verbal Reasoning Test Logical Reasoning Test C Programming Test Java Programming Test Data Interpretation Test General Knowledge Test
Data Structures Operating Systems Networking DATABASE Database Basics SQL Server Basics SQL Server Advanced SQL Server 2008 JAVA Core Java Java Basics Advanced Java UNIX Unix File Management Unix Memory Management Unix Process Managemnt C Interview Questions The C Language Basics .NET Interview Questions .NET Framework ADO.NET ASP.NET Software Testing

C Programming - Typedef - Discussion

@ : Home > C Programming > Typedef > General Questions - Discussion

Read more:

"I do not seek. I find."
- Pablo Picasso
3. 

What is x in the following program?

#include<stdio.h>

int main()
{
    typedef char (*(*arrfptr[3])())[10];
    arrfptr x;
    return 0;
}

[A]. x is a pointer
[B]. x is an array of three pointer
[C]. x is an array of three function pointers
[D]. Error in x declaration

Answer: Option D

Explanation:

No answer description available for this question.


Murari Jaiswal said: (Fri, Oct 22, 2010 09:10:42 PM)    
 
*(*
means pointer to pointer which gives value

so arrays of three function pointer

Rajneesh Kumar said: (Sun, Mar 6, 2011 04:45:17 AM)    
 
Its pointer of pointer concept so which gives value.

So arrays of three function pointer.

Mtb said: (Fri, Sep 9, 2011 02:56:15 AM)    
 
If one can give a more detailed description for this, I would appreciate it.

Prasad said: (Fri, Sep 23, 2011 12:56:23 PM)    
 
I do not understand please explain it.

Siddu said: (Thu, Nov 3, 2011 02:55:47 PM)    
 
The return value of the function whose function pointer can be any of arrfptr[n]will be a pointer to an array of 10 characters.

The declaration can interpreted as "type of the array to be returned by function(char) (Returning char pointer(*)(function pointer name(*arrfptr)[size of the array of function pointers](3)(parameters)(void))[size of the array which will be returned from the function].

Write your comments here:
Name *:     Email:


© 2008-2011 by IndiaBIX™ Technologies. All Rights Reserved | Copyright | Terms of Use & Privacy Policy

Advertise     Contact us: info@indiabix.com     Follow us on twitter!