# int* func(int arg)# {# int* temp = new int[arg];# return temp;# }# int main()# {# int* arr = func(5);# }to return an array
# int* func(int arg)
ReplyDelete# {
# int* temp = new int[arg];
# return temp;
# }
# int main()
# {
# int* arr = func(5);
# }
to return an array