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
What does void main () mean?
The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 ā¦). Records the times. c). Do an analysis of the differences in times and submit it in class.
What will the preprocessor do for a program?
Where register variables are stored in c?
Which is the memory area not included in C program? give the reason
Explain threaded binary trees?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
What is data type long in c?
Is main is user defined function?
What are loops c?
Why do we use & in c?
Explain high-order and low-order bytes.
What are the types of type specifiers?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
How can I change their mode to binary?