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

How to implement call back functions ?

3 Answers   HP,


How to swap 3 numbers without using 4th variable?

5 Answers  


What is the purpose of sprintf() function?

0 Answers  


#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300,200,100

1 Answers  


What are categories used for in c?

0 Answers  






What is the use of bit field?

0 Answers  


When is an interface "good"?

1 Answers  


What does p mean in physics?

0 Answers  


Program to write some contents into a file using file operations with proper error messages.

2 Answers  


what will be maximum number of comparisons when number of elements are given?

0 Answers  


What does c mean?

0 Answers  


What are the average number of comparisons required to sort 3 elements?

2 Answers   DRDO,


Categories