- 1

Write a C program to sort an array using pointer and print the array after sorting.

#include<stdio.h> int main(){ int size; printf("enter size of array"); scanf("%d",&size); int arr[size]; size_t i; printf("enter array elements"); for(int i=0;i<size;i++){ scanf("%d",arr[i])} then what??? please help me return 0;

31st Mar 2021, 12:49 PM
SOSO Rr
3 Antworten
- 1
where is the answer?
31st Mar 2021, 2:03 PM
SOSO Rr
+ 1
Read about qsort
31st Mar 2021, 1:20 PM
Hima
Hima - avatar