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

Answers were Sorted based on User's Feedback



A function 'q' that accepts a pointer to a character as argument and returns a pointer t..

Answer / abdur rab

The Prototype should be

int* q ( char* );

Is This Answer Correct ?    3 Yes 1 No

A function 'q' that accepts a pointer to a character as argument and returns a pointer t..

Answer / subbu

answer is d

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

What is the use of f in c?

0 Answers  


I came across some code that puts a (void) cast before each call to printf. Why?

0 Answers  


How does struct work in c?

0 Answers  


what is a headerfile?and what will be a program without it explain nan example?

6 Answers   Assurgent,


main() { int i=5; printf("%d",++i + i); } output is 10 ------------------------ main() { int i=5; printf("%d",i++ + i); }output is 12 why it is so? give appropiate reason....

2 Answers  






What is pointer to pointer in c?

0 Answers  


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

0 Answers  


writ a program to compare using strcmp VIVA and viva with its output.

0 Answers  


How can you allocate arrays or structures bigger than 64K?

0 Answers  


code for concatination of 2 strings with out using library functions?

3 Answers  


Explain what are binary trees?

0 Answers  


Explain how can I remove the trailing spaces from a string?

0 Answers  


Categories