*int*[] funName(int* ptr)is it ok???
somewhat near.... but wrong..
int ** funName(int *);
wrong...
What's the ans?
1. We need, a function with argument int *,function(int *)2. a function with argument int *, returning pointer to(*function(int *))3. a function with argument int *, returning pointer to array of 4(*function(int *))[4]4. a function with argument int *, returning pointer to array of 4 integer pointersint *(*function(int *))[4];
very good explanation ..:) :)
*int*[] funName(int* ptr)
ReplyDeleteis it ok???
somewhat near.... but wrong..
ReplyDeleteint ** funName(int *);
ReplyDeletewrong...
ReplyDeleteWhat's the ans?
ReplyDelete1. We need, a function with argument int *,
ReplyDeletefunction(int *)
2. a function with argument int *, returning pointer to
(*function(int *))
3. a function with argument int *, returning pointer to array of 4
(*function(int *))[4]
4. a function with argument int *, returning pointer to array of 4 integer pointers
int *(*function(int *))[4];
very good explanation ..
ReplyDelete:) :)