MCPcopy Create free account
hub / github.com/Lakhankumawat/LearnCPP / takeArrayFromUser

Function takeArrayFromUser

S-SortingAlgorithms/ShellSort.cpp:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40*/
41
42int *takeArrayFromUser(int arraySize) {
43 int * arr = new int[arraySize];
44 for (int i = 0; i < arraySize; i++) {
45 cout << "Enter Element (" << i + 1 << "): ";
46 cin >> arr[i];
47 }
48 return arr;
49}
50
51/*
52 * Printing the array

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected