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

Explain the use of keyword 'register' with respect to variables.

1 Answers  


Compare and contrast compilers from interpreters.

1 Answers  


What is your stream meaning?

1 Answers  


int main(){ float f=8.0; if(f==8.0) printf("good"); else printf("bad"); } what is the answere and explain it?

3 Answers  


Write a program in c to print 1 121 12321 1234321 123454321

11 Answers   ANR, College School Exams Tests, Mu Sigma, Wipro,


main() { int i; printf("%d", &i)+1; scanf("%d", i)-1; }

1 Answers  


What is a spanning Tree?

2 Answers   TCS,


Why we use int main and void main?

1 Answers  


Is the following code legal? struct a { int x; struct a b; }

4 Answers  


what is the output of the following program? main() { int c[]={2,8,3,4,4,6,7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf("%d",*c); ++q; } for(j=0;j<5;j++) { printf("%d",*p); ++p; } }

4 Answers  


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

1 Answers  


how to execute a program using if else condition and the output should enter number and the number is odd only...

1 Answers  


Categories