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
Explain what are the different file extensions involved when programming in c?
How do I swap bytes?
Explain how can I open a file so that other programs can update it at the same time?
What is cohesion in c?
What is the difference between āgā and āgā in C?
explain what are actual arguments?
Explain b+ tree?
What is the heap in c?
What are local static variables?
what is a constant pointer in C
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
What is the difference between far and near ?
what is use of malloc and calloc?
how to find anagram without using string functions using only loops in c programming
Why pointers are used?