Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

4.A function 'q' that accepts a pointer to a character as
argument and returns a pointer to an array of integer can
be declared as:
A)int (*q(char*)) []
B)int *q(char*) []
C)int(*q)(char*) []
D)None of the Above

Answer Posted / sambuddha

THE ANSWER WILL BE
D)NONE OF THE ABOVE

THE CORRECT WAY TO DECLARE IT WILL BE

int * q(char * );

ret_type func_name(arg); is a general function declaration.

ret_type is pointer to an array of integer i.e, int *

arg is accepts a pointer to a character i.e, char *

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are the different file extensions involved when programming in c?

1117


How do I swap bytes?

1084


Explain how can I open a file so that other programs can update it at the same time?

1122


What is cohesion in c?

984


What is the difference between ā€˜g’ and ā€œgā€ in C?

4017


explain what are actual arguments?

1097


Explain b+ tree?

1079


What is the heap in c?

1086


What are local static variables?

1160


what is a constant pointer in C

1187


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

2395


What is the difference between far and near ?

1199


what is use of malloc and calloc?

1910


how to find anagram without using string functions using only loops in c programming

3197


Why pointers are used?

1082